Filter: wu_is_wu_page
Filters whether the current admin page is considered an Ultimate Multisite page.
Addons that register admin pages with non-standard slugs (i.e., slugs that do not contain wp-ultimo and do not start with wu-) should hook into this filter to ensure the default Ultimate Multisite admin styles and scripts (including wu-form modal styling) are enqueued on their pages. Example: add_filter( 'wu_is_wu_page', function ( $is_wu_page, $hook_suffix ) { if ( str_contains( $hook_suffix, 'my-addon-slug' ) ) { return true; } return $is_wu_page; }, 10, 2 );
Parameters
| Name | Type | Description |
|---|---|---|
| $is_wu_page | bool | Whether the page is recognized as an Ultimate Multisite page. |
| $hook_suffix | string | The hook suffix for the current admin page. |
Since
- 2.6.3
Source
Defined in inc/functions/assets.php at line 92