Location: everywhere
AffiliateWP — Restrict Checkout Referrals Dropdown by User Role
/** * Restrict Checkout Referrals to a Specific User Role & Filter Affiliates by Role * * – Only displays the Checkout Referrals dropdown to logged-in users * with the ‘influencer_sales’ role. * – Filters the affiliate dropdown to only…Continue reading
test
.test-class{ display:none; } .res{display:none;!importanat}Continue reading
AffiliateWP – Second Affiliate Selection at Checkout (WooCommerce Checkout Block)
/** * Second Affiliate Selection at WooCommerce Checkout (Checkout Block Compatible) * * Adds a second affiliate dropdown alongside the Checkout Referrals addon’s * first dropdown and creates a separate referral for the second affiliate. * * Requires: AffiliateWP +…Continue reading
Broken variations checker
add_action(‘init’, function () { if (!is_user_logged_in() || !current_user_can(‘manage_woocommerce’)) { return; } if (!isset($_GET[‘broken_variable_products’])) { return; } if (headers_sent()) { return; } $product_ids = get_posts([ ‘post_type’ => ‘product’, ‘posts_per_page’ => -1, ‘fields’ => ‘ids’, ‘tax_query’ => [ [ ‘taxonomy’ => ‘product_type’,…Continue reading
PPMX Security Essentials 2026
// Sitemap deaktivieren add_filter(‘wp_sitemaps_enabled’, ‘__return_false’); // Globale Auto-Updates deaktivieren if (!defined(‘AUTOMATIC_UPDATER_DISABLED’)) { define(‘AUTOMATIC_UPDATER_DISABLED’, true); } // XML-RPC deaktivieren add_filter(‘xmlrpc_enabled’, ‘__return_false’); // Generator Meta-Tag entfernen add_filter(‘the_generator’, ‘__return_empty_string’); // Core / Plugin / Theme Updates deaktivieren add_filter(‘auto_update_core’, ‘__return_false’); add_filter(‘auto_update_plugin’, ‘__return_false’); add_filter(‘auto_update_theme’, ‘__return_false’);…Continue reading
WordPress Post Views Counter Function (copy)
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, $count_key); add_post_meta($postID, $count_key, ‘0’); }else{ $count++; update_post_meta($postID, $count_key, $count); } } //Get rid of prefetching to keep the count accurate remove_action( ‘wp_head’, ‘adjacent_posts_rel_link_wp_head’, 10,…Continue reading
TEst Library Marko
echo ‘fff’;Continue reading
WWOF v3: Force “View Cart” link in the success side-popup to open in the same tab
/** * WWOF v3: Force “View Cart” link in the success side-popup to open in the same tab. */ add_action( ‘wp_footer’, ‘wwof_v3_view_cart_same_tab_script’, 999 ); function wwof_v3_view_cart_same_tab_script() { ?>Continue reading