Skip to content

Commit

Permalink
disable jetpack messages and xmlrpc
Browse files Browse the repository at this point in the history
  • Loading branch information
neilgee committed Feb 4, 2021
1 parent 0b24068 commit 2d60db2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions includes-child/dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ function bt_remove_dashboard_widgets() {
// Disable application passwords introduced in WP 5.6.
add_filter( 'wp_is_application_passwords_available', '__return_false' );

// Disable xmlrpc
add_filter( 'xmlrpc_enabled', '__return_false' );

// Disable JetPack Messages
add_filter( 'jetpack_just_in_time_msgs', '__return_false', 99 );


add_action( 'admin_head', 'bt_hide_tabs' );
/**
Expand Down

0 comments on commit 2d60db2

Please sign in to comment.