Status Count (subsite)
/** * Subsite Post Status Report (WPCode snippet ready) * * Adds a Site Admin page: Tools → Post Status Report * – Shows counts of posts by post_status for the selected post type * – Each status is a…Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
/** * Subsite Post Status Report (WPCode snippet ready) * * Adds a Site Admin page: Tools → Post Status Report * – Shows counts of posts by post_status for the selected post type * – Each status is a…Continue reading
add_action(‘update_option_woocommerce_stripe_settings’, function($old_value, $value, $option) { if (!isset($old_value[‘testmode’]) || !isset($value[‘testmode’])) { return; } if ($old_value[‘testmode’] === $value[‘testmode’]) { return; } $optionName = ‘woocommerce_stripe_testmode_log’; $entry = [ ‘time’ => current_time(‘mysql’), ‘uri’ => $_SERVER[‘REQUEST_URI’] ?? ”, ‘hook’ => current_filter(), ‘old’ => $old_value[‘testmode’], ‘new’…Continue reading
add_action(‘init’, function () { remove_action(‘wp_head’,’print_emoji_detection_script’,7); remove_action(‘wp_print_styles’,’print_emoji_styles’); remove_action(‘wp_head’,’wp_oembed_add_discovery_links’,10); remove_action(‘wp_head’,’rest_output_link_wp_head’,10); });Continue reading
/** * Get X Media – Canada Hreflang (Output Buffering Method) * * @package GetXMedia_Hreflang * @author Get X Media * @version 3.0.1 */ if ( ! defined( ‘ABSPATH’ ) ) { exit; } /** * Inject hreflang tag into…Continue reading
/** * Clean RankMath Data Extractor – No Styling * Universal solution for extracting RankMath Local Business data * Works across any WordPress site with RankMath * Add to WP Code Snippets – PHP Snippet – Run Everywhere * *…Continue reading
//la form contatti non va altrimenti add_filter(‘wpcf7_recaptcha_threshold’, function() { return 0.25; });Continue reading
function normalize_status($status, $publish_date = ”) { // Normalize feed status $status_lower = strtolower(trim($status)); // Prefer WP’s notion of “now” and timezone $now_ts = current_time(‘timestamp’); // WP local time $pub_ts = $publish_date ? strtotime($publish_date) : false; // If we have a…Continue reading
/** * Activeer alle automatische updates (globaal), * met correcte visuele weergave en standaard WordPress instellingen. */ if ( ! defined( ‘ABSPATH’ ) ) exit; /** * Hulpfunctie: check of huidige gebruiker een Pixelsz beheerder is */ function pixelsz_is_beheerder() :…Continue reading
/** * WhatsApp Chatbox – auto open na 10s, mobiel compact venster + grotere tekst */ add_action( ‘wp_footer’, function() { ?> Chat met ons WhatsApp Chat × Hallo 👋Waarmee kunnen wij je helpen? VerzendContinue reading