Skip to content

Commit

Permalink
Disable XML-RPC methods
Browse files Browse the repository at this point in the history
  • Loading branch information
rilwis committed Apr 17, 2024
1 parent 97d1f59 commit 24875c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Security.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public function no_public_rest_api( $access ) {

public function no_xmlrpc(): void {
add_filter( 'xmlrpc_enabled', '__return_false' );
add_filter( 'xmlrpc_methods', '__return_empty_array' );
add_filter( 'pings_open', '__return_false' );
}

Expand Down

0 comments on commit 24875c0

Please sign in to comment.