WP Rocket Query Monitor Debug (Disable with Query Monitor)
add_action( ‘before_rocket_clean_domain’, function() { do_action( ‘qm/cease’ ); } );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_action( ‘before_rocket_clean_domain’, function() { do_action( ‘qm/cease’ ); } );Continue reading
/** * Manually refresh all members’ data. * * Once this snippet is added, visit /wp-admin/?update-member-data=true on your site to update all member data. * After running the update, clear any site cache and check the Members page again. */…Continue reading
function mepr_custom_checkout_image() { ?>Continue reading
/* This code snippet is intended to filter the available subscription plans, allowing only specific plans. * * This code is used to prevent vendors from changing their plan to the free subscription option. * * The `pms_member_change_subscription_other_plans` filter hook…Continue reading
function custom_category_title( $title ) { $title = str_replace( ‘Archieven’, ‘Mijn gewenste titel’, $title ); return $title; } add_filter( ‘archive_title’, ‘custom_category_title’ );Continue reading
/* * Display author’s profile info and photo * */ function display_author_profile_section($atts) { ob_start(); // Use attributes, set defaults if not provided $atts = shortcode_atts(array( ‘tag’ => ” ), $atts); $tag_slug = $atts[‘tag’]; // Get the current tag from the…Continue reading
add_filter( ‘manage_edit-shop_order_columns’, ‘custom_shop_order_column’, 90 ); function custom_shop_order_column( $columns ) { $ordered_columns = array(); foreach( $columns as $key => $column ){ $ordered_columns[$key] = $column; if( ‘order_date’ == $key ){ $ordered_columns[‘order_notes’] = __( ‘Notes’, ‘woocommerce’); } } return $ordered_columns; } add_action( ‘manage_shop_order_posts_custom_column’…Continue reading
add_filter( ‘site_transient_update_plugins’, ‘__return_empty_array’ ); add_filter( ‘transient_update_plugins’, ‘__return_empty_array’ ); add_filter( ‘site_transient_update_themes’, ‘__return_empty_array’ ); add_filter( ‘transient_update_themes’, ‘__return_empty_array’ ); // Disable core wp updates. add_filter( ‘pre_site_transient_update_core’, function ( $object = null ) { global $wp_version; // Return an empty object to prevent extra…Continue reading
// Please note: This snippet will only show the last login date & time AFTER the snippet is activated. // The snippet has to be active to track the last login date & time. // Add a column to the…Continue reading
add_action( ‘login_enqueue_scripts’, function() { echo ‘ ‘; } );Continue reading