pre_option_enable_xmlrpc

pre_option_enable_xmlrpc

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('pre_option_enable_xmlrpc') is found 1 times:

  • /wp-includes/class-wp-xmlrpc-server.php line 194
    		/*
    		 * Respect old get_option() filters left for back-compat when the 'enable_xmlrpc'
    		 * option was deprecated in 3.5.0. Use the {@see 'xmlrpc_enabled'} hook instead.
    		 */
    		$is_enabled = apply_filters( 'pre_option_enable_xmlrpc', false );
    		if ( false === $is_enabled ) {
    			$is_enabled = apply_filters( 'option_enable_xmlrpc', true );
    		}
    
    		/**
    		 * Filters whether XML-RPC methods requiring authentication are enabled.
    

See this hook used in plugins: