// Project form – First field dynamic (ID = 100) add_filter( ‘gform_pre_render’, ‘byus_populate_aap_select_field’ ); add_filter( ‘gform_pre_validation’, ‘byus_populate_aap_select_field’ ); add_filter( ‘gform_pre_submission_filter’, ‘byus_populate_aap_select_field’ ); add_filter( ‘gform_admin_pre_render’, ‘byus_populate_aap_select_field’ ); function byus_populate_aap_select_field( $form ) { $aap_mode_enabled = get_field( ‘aap_mode_enabled’, ‘option’ ); $current_aap = get_field(…Continue reading
/** * 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
/** * 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
add_shortcode(‘current-year’, function() { return date(‘Y’); });Continue reading
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
add_filter( ‘login_display_language_dropdown’, ‘__return_false’ );Continue reading
add_action( ‘after_setup_theme’, function() { remove_theme_support( ‘core-block-patterns’ ); });Continue reading