Location: everywhere
GSL Publication Auto-Tagger
/** * GSL Publication Auto-Tagger for WPCode * * Extracts keywords from teachPress publication titles and creates tags * for the tag cloud. Adds an admin page under the teachPress menu. * * WPCode Settings: * Code Type: PHP Snippet…Continue reading
Variable Pricing License Expiration (copy)
/** * Below are two different filters: one to modify the unit (months, years, or days), and another * to modify the length. They are used together to build a full billing cycle for that price ID. * So if…Continue reading
Untitled Snippet
Hide Campaign Meta (Author, Date, Comments)
ByUs – Global snippets
add_shortcode(‘current-year’, function() { return date(‘Y’); });Continue reading
Single product – Show size description
add_action( ‘woocommerce_before_single_variation’, function() { if ( ! is_product() ) return; global $product; if ( ! $product ) return; $field_name = ‘uitleg_maten’; // ACF field name $taxonomy = ‘pa_merk’; // jouw attribute taxonomy $terms = taxonomy_exists( $taxonomy ) ? wp_get_post_terms( $product->get_id(),…Continue reading
Disable Login Screen Language Switcher
add_filter( ‘login_display_language_dropdown’, ‘__return_false’ );Continue reading
Disable Pattern Directory
add_action( ‘after_setup_theme’, function() { remove_theme_support( ‘core-block-patterns’ ); });Continue reading
Disable the WordPress Shortlink
remove_action(‘wp_head’, ‘wp_shortlink_wp_head’ );Continue reading