/** * LifterLMS Content Sync Engine – Comprehensive Data Version * Syncs courses ONLY with ALL related content stored within course records * Integrates with detail population and edit links * WPCode Snippet – Run Everywhere – Priority 20 */…Continue reading
add_action( ‘woocommerce_shop_loop_item_title’, ‘add_category_above_product_title’, 6 ); function add_category_above_product_title() { global $product; $current_post_id = isset( $GLOBALS[‘wp_query’]->queried_object_id ) ? $GLOBALS[‘wp_query’]->queried_object_id : 0; if ( ! $current_post_id ) { return; } $post_content = get_post_field( ‘post_content’, $current_post_id ); if ( strpos( $post_content, ‘[wcv_products’ ) ===…Continue reading
/** * LifterLMS Text Replacement Snippet – VERIFIED VERSION * Changes “Courses” to “Modules” and “Lessons” to “Steps” * Add to WP Code Snippets or functions.php * Run everywhere (Frontend & Admin) * * Based on official LifterLMS documentation and…Continue reading
/** * LifterLMS Text Replacement Snippet – VERIFIED VERSION * Changes “Courses” to “Modules” and “Lessons” to “Steps” * Add to WP Code Snippets or functions.php * Run everywhere (Frontend & Admin) * * Based on official LifterLMS documentation and…Continue reading
function get_people_groups_field_values($atts) { // Extract attributes $atts = shortcode_atts(array( ‘field_name’ => ”, ‘slug_output’ => ‘false’, ), $atts, ‘people_groups_fields’); // Get the current post ID $post_id = get_the_ID(); $output = ”; if (get_post_type($post_id) === ‘people_groups’) { // Debugging: Check if the…Continue reading
/** * Pixelsz – Cache-busting voor herhaalbezoeken * – Voegt ?v=TIMESTAMP toe aan media (ook srcset) * – Optioneel: ook aan lokale CSS/JS * – Verwijdert oude ?ver / ?v om dubbele versies te voorkomen */ /** Helper: haal een…Continue reading
// functions.php of via Code Snippets add_filter(‘wp_get_attachment_url’, function ($url, $post_id) { $path = get_attached_file($post_id); if ($path && file_exists($path)) { $url = add_query_arg(‘v’, filemtime($path), $url); } return $url; }, 10, 2);Continue reading
/* ————————————————————————- * * Gravity Form Custom Theme /* ————————————————————————- */ add_filter( ‘gform_default_styles’, function( $styles ) { return ‘{“theme”:””,”inputSize”:”lg”,”inputBorderRadius”:”5″,”inputBorderColor”:”#000″,”inputBackgroundColor”:”#fff”,”inputColor”:”#000″,”inputPrimaryColor”:”#000″,”labelFontSize”:”18″,”labelColor”:”#000″,”descriptionFontSize”:”14″,”descriptionColor”:”#000″,”buttonPrimaryBackgroundColor”:”#4B533D”,”buttonPrimaryColor”:”#fff”}’; } );Continue reading
function display_language_link() { global $wpdb; // Get the ACF field ‘rol’ from current post $post_id = get_the_ID(); $rol = get_field(‘ROL’, $post_id); $country = get_field(‘Ctry’, $post_id); $language = get_field(‘Lang’, $post_id); if (empty($rol)) { return ‘ No language code (ROL) found for…Continue reading