Please try to use following code
add_filter( 'aws_title_search_result', 'my_aws_title_search_result', 10, 3 );
function my_aws_title_search_result( $title, $post_id, $product ) {
$text1 = get_post_meta( $post_id, '_tyre_size_field', true );
$text2 = get_post_meta( $post_id, '_load_speed_field', true );
$text3 = get_post_meta( $post_id, '_tyre_brand_field', true );
$text4 = get_post_meta( $post_id, '_brand_model_field', true );
$text5 = get_post_meta( $post_id, '_run_flat_field', true );
if (stripos( $title, 'TYRE' ) == true ) {
$title = $text1 . " ". $text2 . " " . $text3 . " " . $text4 . " " . $text5 . " " . $title;
}
return $title;
}
Also after this you will probably need to go to plugin settings page and click ‘Clear cache’ button.
Related Posts:
- Add multiple attributes to product from php
- “Enable Media Replace” plugin does not update serialized object in WPMeta
- Get value from an input field and pass into update_meta_data as $meta_value
- how to add meta for order in woocommerce
- Hide prices and checkout functionality in woocommerce
- Woocommerce hook after creating order? [closed]
- How to authenticate custom API endpoint in WooCommerce [closed]
- Function to Set Product type in Woocommerce [closed]
- Update Multiple Post Meta for the Same Post In One call?
- How can I add a custom meta value on file upload?
- Add CSS class to add-to-cart button, Woocommerce [closed]
- How to get custom field image url of specific size
- Woocommerce Shipping module available only for type of products [closed]
- WooCommerce – Adding Custom Order Without No Product [closed]
- XML sitemap over product variations
- Make the checkbox meta field checked by default
- Manually add order item with fixed product_id in WooCommerce
- WooCommerce shop page orderby [closed]
- Reduce Drop down Menu Width in WordPress
- What is generating my meta og:description?
- How to modify WCMP Rest API response?
- Woocommerce dependent plugin
- How to check current user before all actions and filters?
- get current date + 90 days and checking every day
- CampaignMonitor for WooCommerce – Move subscribe button [closed]
- Pre booking doesn’t work with custom bootstrap modul in woocommerce [closed]
- WooCommerce specifc variations for specific user role [closed]
- Custom Pages for Woocommerce Product-Category Pages
- Woocommerce Minimum Price for a Composite Product to add in cart
- Is there a way to get plugins and themes not built for multisite to work on a network subsite?
- Add item to the woocommerce dashboard menu from a plugin
- How to remove bulk actions from custom post type
- How to get the particular product quantity in orders in Woocommerce [closed]
- Get orders of a specific customer woocommerce
- wc_get_template new template does not showing up
- Woocommerce singe product custom gallery output works just on the first slide
- How to include a custom field in the woocommerce email?
- Override a Plugin Function
- Custom template for all woo commerce categories
- Is it possible to instantiate a new WC_Cart?
- Sell access to form [closed]
- Add key and value to an array in another file
- I want to filter my products with attributes [closed]
- Automatic recurring payment using YITH subscription and Dokan Stripe
- apply_filters(woocommerce_get_item_data, …) Causing errors when adding to cart
- Why does “updated_post_meta” did not fire when uploading media other than image?
- What snippet do I need to type to show my ACF field show up on my theme?
- Change Dashboard URL from wp-admin to wp-admin/index.php
- Is there a way to make [Table Of Content] plugin while not using revision data?
- How To Use do_shortcode with WooCommerce One Page Checkout
- How to makes changes on the shop/category/tag pages but not on the product pages in woocommerce?
- Hide fields in woocommerce settings
- woocommerce: Customize email with item total count
- Plugin which unlock free gift when you reach some amount in cart
- Save order without sending the invoice / order details woocommerce [closed]
- show wc_add notices on particular page in woo commerce custom plugin development
- Woocommerce redirection if no previous orders
- How to assign a specific service to a specific provider based on location
- Make modification of add_to_cart button specific to single page
- How to get the checkout form data from checkout page when place-order button is clicked
- Product Page loads terribly slow when product gallery images are added
- How to make WooCommerce multiple filter with custom meta fields
- One WooCommerce Store to multi distributor sites
- Custom form data not displaying in cart page?
- best way to handle subscriptions with a licence?
- Is there a request for products plugin for WooCommerce
- Custom Field used to allow a Free Story; no longer works
- woocommerce with external ftp site
- Object of class WP_Error could not be converted to string in /formatting.php
- Only return taxonomies that are linked to a category & product
- WordPress eMails not working
- Add WooCommerce vendor slug to auto-generated SKU
- Custom plugin issue – Notice: Trying to get property of non-object in
- fetch price from different table woocommerce
- Cannot save a custom meta field in quick edit
- how to make settings page for woocommerce plugin?
- redirect to a custom page
- wordpress plugin translation not working
- Change value of Points earned in product data
- Problem with conditional woocommerce custom checkout field
- How can I make my plugin display custom post meta data on the front end?
- change product image url in widgets & shop page
- How woo-commerce store Product Data value in DB?
- Not getting result using ajax on wordpress
- Which WordPress version to use for improved plugin compatibility? [closed]
- wordpress last all added get meta value by post id
- Move related products after product summary? [closed]
- Trying to disable all notifications except for one on woocommerce checkout page with css [closed]
- Woocommerce – Product Description heading [closed]
- Visual Composer Data Source?
- Woocommerce disable checkout on specific day
- Translate text for empty product
- How can I make a quotation engine like this website in WooCommerce?
- Update post meta Rest Api
- How to add a static image inbetween the product tiles on main shoppage woocommerce?
- wp_options Table keeps growing
- ShipStation WooCommerce Integration error
- Add Text in Single Product Page On a Specific Category
- Can we install 3d product configurator into wordpress
- Change Custom WordPress Function [closed]