classic_editor_network_default_settings
classic_editor_network_default_settings
Appears in: classic-editor.1.2, classic-editor.1.3, classic-editor.1.4, classic-editor.1.5, classic-editor.1.6, classic-editor.1.6.1, classic-editor.1.6.2, classic-editor.1.6.3, classic-editor.1.6.4, classic-editor.1.6.5
Hook Type: filter
Displaying hooks found in version: classic-editor.1.6.5apply_filters('classic_editor_network_default_settings') is found 1 times:
- /classic-editor.php line 242
* Filters the default network options. * * @param array $defaults The default options array. See `classic_editor_plugin_settings` for supported keys and values. */ $defaults = apply_filters( 'classic_editor_network_default_settings', $defaults ); if ( get_network_option( null, 'classic-editor-allow-sites' ) !== 'allow' ) { // Per-site settings are disabled. Return default network options nad hide the settings UI. $defaults['hide-settings-ui'] = true; return $defaults; }