// {br-vsp}{br-vpc}ショートコード function replace_br_vsp_shortcode($content) { $content = str_replace(‘{br-vsp}’, ‘‘, $content); $content = str_replace(‘{br-vpc}’, ‘‘, $content); return $content; } add_filter(‘the_content’, ‘replace_br_vsp_shortcode’, 10);Continue reading
Velkommen til Bilerfaring.no Del og les ekte erfaringer med biler i Norge – fra folk som faktisk har eid dem. Toyota Corolla (2015) Driftssikker og billig i drift. Har kjørt 120 000 km uten store problemer. Anbefales! Volkswagen Golf (2018)…Continue reading
function adt_wpml_unified_product_sku_id( $product_data, $feed, $product ) { // Check if the feed is for Facebook dynamic remarketing if( isset($feed->channel[‘fields’]) && $feed->channel[‘fields’] == ‘facebook_drm’ ) { $product_id = $product->get_id(); // Get the original product ID from WPML (default language) $wpml_product_id =…Continue reading
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