function adt_wpml_unified_product_id( $product_data, $feed, $product ) { // Only run for Facebook dynamic remarketing feed if( isset($feed->channel[‘fields’]) && $feed->channel[‘fields’] == ‘facebook_drm’ ) { // Get current product ID $product_id = $product->get_id(); // Get original product ID from WPML (if exists)…Continue reading
/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading
/** * Gravity Flow Steps to CPT Mirror * Creates/updates a gf_workflow_step post for each Gravity Flow step * Updated to extract key settings into separate fields for better CSV export */ defined( ‘ABSPATH’ ) || exit; // Add manual…Continue reading
/** * Registers the “Gravity Flow Step Meta” field group on gf_workflow_step posts. * Updated to store key settings in separate fields for better CSV export */ defined( ‘ABSPATH’ ) || exit; add_action( ‘acf/init’, function () { if ( !…Continue reading
/** * Plugin Name: Gravity Flow Step CPT * Description: Registers post-type `gf_workflow_step` to mirror each Gravity Flow step as a post for reporting * Author: Next Step Consulting * Version: 1.0 */ defined( ‘ABSPATH’ ) || exit; add_action( ‘init’,…Continue reading
function eva_custom_navigation_links() { // Cultura → solo flecha siguiente if ( is_page(‘cultura’) ) { echo ‘ Siguiente » ‘; } // Herramientas → anterior y siguiente personalizados if ( is_page(‘herramientas’) ) { echo ‘ « Anterior | Siguiente » ‘;…Continue reading
add_shortcode(‘entry-count’,’my_entry_count’); function my_entry_count($atts){ global $user_ID; $ids = FrmDb::get_col( ‘frm_items’, array(‘user_id’ => $user_ID)); return count($ids); }Continue reading