WP Kernel API / core/src / getWPData
Variable: getWPData()
ts
const getWPData: () => __module | undefined = globalThis.getWPData;
Safe accessor that works in browser & SSR contexts Available globally without imports
Returns
__module
| undefined
WordPress data package or undefined if not available