wp_is_xml_request example


        $callback = apply_filters( 'wp_die_jsonp_handler', '_jsonp_wp_die_handler' );
    } elseif ( defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST ) {
        /** * Filters the callback for killing WordPress execution for XML-RPC requests. * * @since 3.4.0 * * @param callable $callback Callback function name. */
        $callback = apply_filters( 'wp_die_xmlrpc_handler', '_xmlrpc_wp_die_handler' );
    } elseif ( wp_is_xml_request()
        || isset( $wp_query ) &&
            ( function_exists( 'is_feed' ) && is_feed()
            || function_exists( 'is_comment_feed' ) && is_comment_feed()
            || function_exists( 'is_trackback' ) && is_trackback() ) ) {
        /** * Filters the callback for killing WordPress execution for XML requests. * * @since 5.2.0 * * @param callable $callback Callback function name. */
        
Home | Imprint | This part of the site doesn't use cookies.