-
Home
-
WP Service Payment Form With Authorize.net
- Tips
function plt_hide_wp_service_payment_form_with_authorizenet_menus() {
//Hide "Service Payment".
remove_menu_page('wpspf-plugin-settings-page');
//Hide "Service Payment → Service Payment".
remove_submenu_page('wpspf-plugin-settings-page', 'wpspf-plugin-settings-page');
//Hide "Service Payment → All Payments".
remove_submenu_page('wpspf-plugin-settings-page', 'wpspf-all-payments');
//Hide "Service Payment → Form Fields Settings".
remove_submenu_page('wpspf-plugin-settings-page', 'wpspf-form-settings');
//Hide "Service Payment → Settings Document".
remove_submenu_page('wpspf-plugin-settings-page', 'wpspf-settings-document');
}
add_action('admin_menu', 'plt_hide_wp_service_payment_form_with_authorizenet_menus', 11);
Where do I put this code?