Add custom page to the vendor dashboard
// Hook into the navigation add_filter( 'wcv_pro_dashboard_urls', 'add_test_page_nav', 9 ); function add_test_page_nav( $pages ){ $pages[ 'test_page'…
WP Simple Pay: Set a Per-Form Custom Amount Programmatically
Adjust a single payment form's custom amount value programatically.
Hide sidebar on mobile device
function custom_hide_sidebar_on_mobile() { echo ' '; } add_action('wp_head', 'custom_hide_sidebar_on_mobile');
Discover LaMelo Shoes: Where Street Style Meets Basketball
Discover LaMelo Shoes – the perfect fusion of style, performance, and comfort. Whether you're dominating the…
How to Allow WordPress WooCommerce Direct Order to WhatsApp Free.
Post Intro In this tutorial you will learn How to Allow WordPress WhatsApp Direct Order to…
Submission Form Redirect
Filter the redirect URL for successful FES Submission Form submission
MemberPress: Remove all but one country from the drop-down
Removes all the countries for the drop-down list on the account and registration pages and leaves…
Disable WooCommerce widgets on vendor store pages
/** * Remove widgets from the vendor store and single product pages conditionally. * * You…
MemberPress: Return to Same Page After Signup
Return the user to the same page after they register.
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,…
CSS For Craft Picker
/* General Styles */ body { margin: 0; font-family: 'Arial', sans-serif; background-color: #f9f9f9; color: #333; line-height:…
Logout URL
This snippet creates a simple logout URL link that you can use as a shortcode.
Elementor Rest Bridge
if (!defined('ABSPATH')) { exit; } add_action('init', function () { $post_types = array('page', 'post', 'elementor_library'); foreach ($post_types…