PIPAS — Biennale de Photographie Genève PIPAS À propos Pratique 24 22 PIPAS Biennale de Photographie des écoles · Genève · Par et pour les élèves Prochaine édition — 27 mai au 14 juin 2026 · Ecoquartier Jonction · Plaine…Continue reading
/** * 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
/** * 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
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
// 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
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