function mepr_show_nav_menu() { if(!class_exists( ‘MeprAccountCtrl’ ) ) { return; } $mepr_options = MeprOptions::fetch(); $_REQUEST[ ‘action’ ] = ‘mepr-fake’; $old_uri = $_SERVER[ ‘REQUEST_URI’ ]; $parsed = parse_url( $mepr_options->account_page_url() ); $_SERVER[ ‘REQUEST_URI’ ] = $parsed[ ‘path’ ]; // The [mepr-account-nav-menu] shortcode will…Continue reading
add_action( ‘admin_init’, function() { if ( isset( $_GET[‘export_members_extended’] ) ) { $all = MeprUser::list_table( /* $order_by */ ‘user_login’, /* $order */ ‘ASC’, /* $paged */ ”, /* $search */ ”, /* $search_field */ ‘any’, /* $perpage */ ”, /* $params…Continue reading
function mepr_remove_cancel_link( $link, $sub ) { $time = strtotime( $sub->created_at ); if( time() < strtotime( "+3 months", $time ) ) { return ''; } return $link; } add_filter( 'mepr_custom_cancel_link', 'mepr_remove_cancel_link', 10, 2 );Continue reading
function mepr_remove_pause_link( $output, $sub ) { if( ‘123’ == $sub->product_id ) { return; } return $output; } add_filter( ‘mepr_custom_pause_link’, ‘mepr_remove_pause_link’, 10, 2 );Continue reading
add_filter( ‘run_wptexturize’, ‘__return_false’ );Continue reading
Task Management System by Mayuri K. Toggle navigation > Attendance > More Projects > Database Logout > Attendance Logout Mayuri K. Profile LogoutContinue reading
add_filter(‘views_plugins’, function($views) { global $wp_list_table; if (!is_network_admin() && isset($wp_list_table->items)) { $all_plugins = $wp_list_table->items; $active_plugins = get_option(‘active_plugins’); $reordered_plugins = array(); // Add active plugins first foreach ($all_plugins as $plugin_file => $plugin_data) { if (in_array($plugin_file, $active_plugins)) { $reordered_plugins[$plugin_file] = $plugin_data; } }…Continue reading