Beehive limit
add_filter( ‘beehive_google_analytics_ga4_accounts_page_size’, function ( $limit ) { return 100; } );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘beehive_google_analytics_ga4_accounts_page_size’, function ( $limit ) { return 100; } );Continue reading
add_filter( ‘gettext’, function ( $translated_text, $text, $domain ) { if ( $text == ‘Birthday (optional)’ ) { $translated_text = __( ‘Birthday’, ‘rug’ ); } return $translated_text; }, 20, 3 );Continue reading
add_filter( ‘rank_math_clear_data_on_uninstall’, ‘__return_true’ );Continue reading
add_filter( ‘body_class’, function ( $classes ) { global $post; if ( is_front_page() || is_page( [64, 78, 532, 533, 76] ) || $post->post_parent == 64 || is_singular( ‘product’ ) || is_post_type_archive( ‘product’ ) ) { $classes[] = ‘header-button-blue’; } if (…Continue reading
add_filter( ‘woocommerce_is_sold_individually’, function ( $return, $product ) { return true; }, 10, 2 );Continue reading
// [d] – inserts the current day with two digits e.g. 06 // [D] – inserts the current day with three letters e.g. Mon // [j] – inserts the current day without leading zeros e.g. 6 // [l] – inserts…Continue reading
add_filter( ‘http_request_args’, ‘aioseo_filter_analyzer_timeout’, 1, 2 ); function aioseo_filter_analyzer_timeout( $args, $url ) { if ( ‘https://analyze.aioseo.com/v1/analyze/’ === $url ) { $args[‘timeout’] = 120; } return $args; – }Continue reading
function display_year() { $year = date(‘Y’); return $year; } add_shortcode(‘year’, ‘display_year’);Continue reading
add_action( ‘wfea_popup_scripts_enqueued’, function () { $script = ‘ window.onbeforeunload = null; // set to null to avoid a message about leaving the page before saved – use if redirecting wfeaModalCallback = function () { console.log(“There has been an Eventbrite checkout.”);…Continue reading