Add deliveryTime schema to shippingDetails schema

add_filter( ‘aioseo_schema_output’, function ( $schema ) { foreach ( $schema as &$schemaItem ) { if ( isset( $schemaItem[‘@type’] ) && ‘Product’ === $schemaItem[‘@type’] ) { if(!empty($schemaItem[“offers”][“shippingDetails”])){ // Loop inside the Offers > shippingDetails schema foreach( $schemaItem[“offers”][“shippingDetails”] as &$schemaItemChild ){ //…Continue reading

Disable Emojis

/** * Disable the emojis in WordPress. */ add_action( ‘init’, function () { remove_action( ‘wp_head’, ‘print_emoji_detection_script’, 7 ); remove_action( ‘admin_print_scripts’, ‘print_emoji_detection_script’ ); remove_action( ‘wp_print_styles’, ‘print_emoji_styles’ ); remove_action( ‘admin_print_styles’, ‘print_emoji_styles’ ); remove_filter( ‘the_content_feed’, ‘wp_staticize_emoji’ ); remove_filter( ‘comment_text_rss’, ‘wp_staticize_emoji’ ); remove_filter( ‘wp_mail’,…Continue reading

Change Fields On Donation Form

add_action( ‘wp’, ‘example_charitable_update_donation_fields’ ); function example_charitable_update_donation_fields() { // Get the donation fields. $fields = charitable()->donation_fields(); // Get the field we want to update. $field = $fields->get_field( ‘state’ ); // Update the field’s label to say “Province” on the donation form…Continue reading

hide price milkwaukee

add_action(‘woocommerce_before_single_product’, ‘custom_woocommerce_product_modifications’); add_action(‘woocommerce_before_shop_loop_item’, ‘custom_woocommerce_product_modifications’, 10); add_action(‘woocommerce_after_shop_loop_item’, ‘custom_remove_add_to_cart_buttons’, 1); function custom_woocommerce_product_modifications() { global $product; if (!is_a($product, ‘WC_Product’)) { return; } $product_id = $product->get_id(); $parent_id = $product->is_type(‘variation’) ? $product->get_parent_id() : $product_id; // Retrieve the terms for the ‘pa_brand’ attribute for the product…Continue reading