classic_editor_network_default_settings

classic_editor_network_default_settings

Hook Type: filter

See hook in core

Displaying hooks found in version: classic-editor.1.6.3

apply_filters('classic_editor_network_default_settings') is found 1 times:

  • /classic-editor.php line 237
    			 * 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;
    			}