Filter the settings of email frequency sent

/** * Filter the settings of email frequency sent when using the Extra Expiration Warning Emails Add On * https://www.paidmembershipspro.com/add-ons/extra-expiration-warning-emails-add-on/ * * Update the $settings array to your list of number of days => ”. * Read the Add On…Continue reading

Add inline label styling

/** * Add inline label and button styling to Paid Memberships Pro checkout page. */ function my_load_inline_labels_checkout() { global $pmpro_pages; if ( ! is_page( $pmpro_pages[‘checkout’] ) ) { return; } ?>Continue reading

Disable administrator role checkbox

function disable_administrator_role_checkbox() { $current_user = wp_get_current_user(); $current_user_roles = (array) $current_user->roles; // Check if the current user is an administrator if (in_array(‘administrator’, $current_user_roles)) { ?>Continue reading

Add custom submenu page for restricted name change users

// Add custom submenu page for restricted name change users function add_restricted_name_change_users_submenu_page() { add_submenu_page( ‘users.php’, // parent slug __(‘Restricted Name Change Users’), // page title __(‘Restricted Name Change Users’), // menu title ‘manage_options’, // capability ‘restricted_name_change_users’, // menu slug ‘display_restricted_name_change_users’…Continue reading

Remove color scheme options

function remove_color_scheme_options() { remove_action(‘admin_color_scheme_picker’, ‘admin_color_scheme_picker’); } add_action(‘admin_init’, ‘remove_color_scheme_options’);Continue reading