mcp_enforce_handler_auth

mcp_enforce_handler_auth

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.10.3.4

apply_filters('mcp_enforce_handler_auth') is found 2 times:

  • /vendor/wordpress/mcp-adapter/includes/Handlers/Prompts/PromptsHandler.php line 45
    	 *
    	 * @return array|null Returns error if permission denied, null if allowed.
    	 */
    	private function check_permission(): ?array {
    		$enforce_handler_auth = (bool) apply_filters( 'mcp_enforce_handler_auth', false );
    
    		if ( $enforce_handler_auth && ! is_user_logged_in() ) {
    			return array( 'error' => McpErrorFactory::unauthorized( 0, 'You must be logged in to access prompts.' )['error'] );
    		}
    
    		return null;
    
  • /vendor/wordpress/mcp-adapter/includes/Handlers/Resources/ResourcesHandler.php line 45
    Warning: file(/home/c6974294/public_html/wp-plugin-api.com/sources/plugins/woocommerce/woocommerce.10.3.4/vendor/wordpress/mcp-adapter/includes/Handlers/Re): Failed to open stream: No such file or directory in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 154

    Warning: Trying to access array offset on value of type bool in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 41 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 42 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 43 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 44 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 45 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 46 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 47 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 48 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 49 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 50 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167