Add extra shipping providers for vendor tracking numbers
$shipping_providers = array( 'Australia' => array( 'Australia Post' => 'https://auspost.com.au/mypost/track/#/details/%1$s', 'FedEx' => 'https://www.fedex.com/apps/fedextrack/?tracknumbers=%1$s&cntry_code=au', 'Fastway Couriers' =>…
WP Simple Pay: Conditionally Dequeue Scripts & Styles
Conditionally dequeue scripts & styles based on set conditions. In this example, we remove all plugin…
Remove Gutenberg Blocks CSS
add_action( 'wp_enqueue_scripts', function () { wp_dequeue_style( 'wp-block-library' ); wp_dequeue_style( 'wp-block-library-theme' ); // Remove WooCommerce block CSS…
Remove "p" tags Contact Form 7
Remove tags from the forms in the frontend
WordPress Post Views Counter Function
function wpb_set_post_views($postID) { $count_key = 'wpb_post_views_count'; $count = get_post_meta($postID, $count_key, true); if($count==''){ $count = 0; delete_post_meta($postID,…
Remove Google Font
Remove Google Font
Change Admin Panel Footer Text
Display custom text in the admin panel footer with this snippet.
Defining SMTP.com Mailer Constants
This snippet will prevent users from changing WP Mail SMTP settings in your WordPress admin area…
Note Orders
add_filter( 'manage_edit-shop_order_columns', 'custom_shop_order_column', 90 ); function custom_shop_order_column( $columns ) { $ordered_columns = array(); foreach( $columns as…
Media Library Infinite Scrolling
Infinite Scroll
MemberPress: ACF - Exclude Protected Posts From ACF Repeater Field
The code snippet ensures that protected MemberPress posts are excluded from custom queries used in Advanced…
MemberPress: Code Blocks Pro - Load All Currently Enqueued Styles In the Courses ReadyLaunch Template
By default, if the ReadyLaunch Courses/Lessons template is enabled, the MemberPress Courses add-on won’t enqueue 3rd-party…