/** * Organization & Local Business Schema Field Registration */ add_action(‘acf/init’, function() { if (!function_exists(‘acf_add_local_field_group’)) { return; } acf_add_local_field_group(array( ‘key’ => ‘group_organization_schema’, ‘title’ => ‘Organization & Business Information’, ‘fields’ => array( // Basic Organization Info array( ‘key’ => ‘field_org_basic’, ‘label’…Continue reading
add_filter( ‘wpgetapi_body_parameters’, function ( $params, $api ) { //fix per doppio json encoding del campo fileupload foreach ( $params as $key => $value ) { if ( $key && $key === ‘attachments’ ) { if ( isset( $api->args[ ‘action_args’ ]…Continue reading
function replace_hyphenated_words($content) { return str_replace(‘Wi-Fi’, ‘Wi‑Fi’, $content); } add_filter(‘the_content’, ‘replace_hyphenated_words’);Continue reading
add_filter(‘wpcode_get_snippets_for_location’, function( $snippets, $location) { if ( ‘site_wide_header’ !== $location ) { return $snippets; } // Let’s remove any snippet with the id of pixel_facebook. $snippets = array_filter( $snippets, function( $snippet ) { return ‘pixel_facebook’ !== $snippet->id; } ); return…Continue reading
/** * Show the banner when a html element with class ‘cmplz-show-banner’ is clicked */ function cmplz_show_banner_on_click() { ?>Continue reading
//script: r2c on Call Param with Enhanced Tracking //ver 2.6 if (!defined(‘ABSPATH’)) exit; // Static phone number override – if set, will bypass all other functionality $static_phone_number = ‘8001234567’; // Set your phone number here, e.g. ‘8001234567’ // If static…Continue reading
add_filter( ‘aioseo_keywords’, ‘aioseo_filter_keywords’ ); function aioseo_filter_keywords( $keywords ) { if ( is_singular() ) { $keywords = explode( ‘,’, $keywords ); array_push( $keywords, ‘anotherkeyword’ ); $keywords = implode( ‘,’, $keywords ); } return $keywords ; }Continue reading
add_filter( ‘aioseo_schema_output’, ‘aioseo_filter_schema_output’ ); function aioseo_filter_schema_output( $graph ) { if ( ! function_exists( ‘is_product’ ) || ! is_product() ) { return $graph; } foreach ( $graph as &$item ) { if ( ‘Product’ !== $item[‘@type’] ) { continue; } if…Continue reading
function wpb_change_search_url() { if ( is_search() && ! empty( $_GET[‘s’] ) ) { wp_redirect( home_url( “/search/” ) . urlencode( get_query_var( ‘s’ ) ) ); exit(); } } add_action( ‘template_redirect’, ‘wpb_change_search_url’ );Continue reading
add_filter( ‘aioseo_toc_hash_prefix’, function( $prefix ) { return ”; } );Continue reading