Remove XML-RPC code from html
-
How can I remove XML-RPC code completely from front-end? I searched about it found few codes but none of them actually removed the code.
add_filter( 'xmlrpc_enabled', '__return_false' ); function disable_x_pingback( $headers ) { unset( $headers['X-Pingback'] ); return $headers; }add_filter( 'wp_headers', 'disable_x_pingback' );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Remove XML-RPC code from html’ is closed to new replies.