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
- How to Display Product specific to a category with WooCommerce Plugin? [closed]
- Woocommerce Add Variation Product to Cart from custom link [closed]
- Woocommerce hook after creating order? [closed]
- How do I get WooCommerce to automatically recreate pages? [closed]
- Woocommerce override mini-cart.php not working [closed]
- WooCommerce – How to Add a Custom Field to Cart Items and Cart Totals [closed]
- Can’t set proper WooCommerce language translation [closed]
- WooCommerce – Load Templates From Plugin For All Template Files
- How to authenticate custom API endpoint in WooCommerce [closed]
- WP WC CLI – WooCommerce setup store with wp-cli [closed]
- WooCommerce ‘all’ orders no longer being displayed – how may I debug/fix [closed]
- Create WooCommerce Product Category Programmatically
- Changing Woocommerce Product Description [closed]
- Function to Set Product type in Woocommerce [closed]
- Update Multiple Post Meta for the Same Post In One call?
- WooCommerce create new product and add to cart on form submit
- User profiles and object associations
- Updating WooCommerce variable product stock issue
- WooCommerce Always Include Shipping Information in Checkout [closed]
- Add Products to user’s ID Woocommerce
- How to save Clicks of a download link button while it doesn’t matter if we refresh the page or again login/logout
- How to set value/term of a Woocommerce attribute text field in admin panel?
- Comparisson between date() and a date from wp_postmeta
- Show the “ratingValue” and “ratingCount” values of KK Star Ratings Plugin
- Updating post meta for custom post types
- Woocommerce different URL for every table placed in the restaurant
- Disable Admin Bar Render on Plugin Page
- how to redirect to my template
- WooCommerce Dynamic Cart Pricing
- How can I add a custom meta value on file upload?
- How does WooCommerce display a custom comment_type in Comment Admin?
- How to add product images using script?
- Woocommerce cart is a non-object inside `admin_post` action [closed]
- $woocommerce->cart is null inside WordPress Rest API
- Add CSS class to add-to-cart button, Woocommerce [closed]
- Get product attribute for Simple product in WooCommerce
- How to get custom field image url of specific size
- Custom Shipping method not showing in checkout
- Remove action from woocommerce barcode plugin [closed]
- Show “Local Pickup” shipping method only for specific Woocommerce product categories [closed]
- Override core woocommerce class
- WooCommerce – Where is functions.php?
- Over write plugin templates
- How do I add advanced custom fields / meta fields to Elasticsearch? [closed]
- Woocommerce Shipping module available only for type of products [closed]
- WP Crowdfunding customization [closed]
- WooCommerce – Adding Custom Order Without No Product [closed]
- Woocommerce custom shared taxonomy
- How to prevent action in ajax request, when in admin side?
- Invalid shipping method, WooCommerce [closed]
- Set attached to state
- Sort products without thumbnail in WooCommerce shop page
- Create or Update thousands of woocommerce products via PHP
- Automatically adding category filter based on search string
- How to change ID of an attachment in wp_posts and its related tables correctly?
- Can’t create term for product attribute
- XML sitemap over product variations
- block countries from shipping to them in WooCommerce [closed]
- Woocommerce sidebar not loading in theme
- Is it possible to set up multistore in Woocommerce? [closed]
- Make the checkbox meta field checked by default
- Make specific products accessible only to a user role in WooCommerce
- How to remove the woocommerce_checkout_process action hook in woocommerce if particular project in cart [closed]
- How to edit Image layout in single product page in woocommerce on wordpress?
- How To Hide Filters On Specific Categories with WooCommerce Products Filter(WOOF)
- Woocommerce – Display active variation product price [closed]
- How to get subscription key or id using Woocommerce Subscriptions [closed]
- Need Old Version of plugins
- WooCommerce E-Check payment gateway disappeared when site switched to multi-site
- Manually add order item with fixed product_id in WooCommerce
- Woocommerce email template customization [closed]
- How can I display a contact form for out of stock products in WooCommerce?
- Where to hook my plugin’s action
- Remove specific product from shop in woocommerce [closed]
- woocommerce_order_status_completed action hook not working [closed]
- Is there a filter for get_post_custom()?
- How to update billing_email when user_email is updated [closed]
- HTML in WooCommerce settings
- dynamically generating plugin syntax
- Serve different files depending on OS/Browser
- Is Wrapping intval() Around esc_attr() Redundant for Escaping Input?
- How to configure two SMTP Server for wordpress
- Absolute Image URL in srcset is appended to the upload dir
- Dropdown menu on custom page with product to choose number of products per page
- Woocommerce plugin for minimum order and add-to-card-step
- Add Product Subtitle to Woocommerce Product Page
- Change wordpress current_time function to different timezone
- Only Homepage not loading properly
- WooCommerce shop page orderby [closed]
- How can you include a theme template file from within a plugin (i.e. WooCommerce’s Shop page)?
- woocommerce 3.2.1 not sending order notification emails
- Integrating non-WooCommerce and WooCommerce Orders together [closed]
- Change the method of a class from child function.php
- Override Javascript in a Plugin?
- WooCommerce Custom Product to checkout