Global – FacetWP

/** Adds script to header ** Scroll to top of page – only on Pager facet interaction ** For more info see: ** https://facetwp.com/help-center/facets/facet-types/pager/#how-to-add-pagination-scrolling **/ add_action( ‘wp_head’, function() { ?>Continue reading

Single product – Add shop RankMath breadcrumbs

add_filter( ‘rank_math/frontend/breadcrumb/items’, function( $crumbs, $class ) { //Adding to single products // change to match the post type name $value[] = array( ‘Shop’, // change to the actual name shown on the frontend ‘/shop/’, // change to the actual URL…Continue reading

Backend – Product categorie metaboxes (copy)

class PIM_Metaboxes { public function __construct() { add_action( ‘admin_init’, array($this, ‘add_metaboxes’) ); add_action( ‘save_post’, array($this, ‘save_metabox_data’), 10 , 3 ); add_action( ‘admin_enqueue_scripts’, array($this, ‘category_enqueue_scripts’) ); add_action(‘pa_brand_add_form_fields’, array($this, ‘add_pa_brand_fields’), 10, 2 ); add_action(‘pa_brand_edit_form_fields’, array($this, ‘edit_pa_brand_fields’), 10, 2 ); // Voor pa_merk…Continue reading

GravityView_DIR_AC_SYNC_GravityView Sync System

/** * WPCode Snippet: GravityView Sync System – MANUAL SYNC ONLY * Description: Syncs GravityView configurations to custom post type * Location: Run Everywhere * Priority: 20 * Based on proven Gravity Forms sync patterns * * ⚠️ AUTO-SYNC DISABLED…Continue reading

GravityView_DIR_AB_ACF – GravityView Views ACF Fields

/** * WPCode Snippet: GravityView Views ACF Fields * Description: Registers ACF fields for GravityView configurations and settings * Location: Run Everywhere * Priority: 10 */ defined( ‘ABSPATH’ ) || exit; add_action( ‘acf/init’, function() { if ( ! function_exists( ‘acf_add_local_field_group’…Continue reading