For example you just want to swap rating and price where price would come before rating, you would do the following.
remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10 );
remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 5 );
add_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 11 );
add_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 12 );
Put these lines of code in your theme’s functions.php file.
Related Posts:
- How to add a new product type on woocommerce product types? [closed]
- How can I edit post data before it is saved?
- WordPress hook before inserting post into database
- Making Custom Fields Standard in the Admin UI
- Add custom html to last sub-menu item
- Why isn’t is_home() working correctly?
- Any Hook Called When Post Becomes Published?
- When using the block.getSaveElement hook can you output different markup based on whether or not you are in the edit view or the live page view?
- How to exclude certain widget from showing up on home/front page? [duplicate]
- How to rotate the header image per day?
- WooCommerce Checkout page customization [closed]
- Failed to invoke other hook from the init hook
- Print shortcode in custom action hook not where the shortcode is entered
- Disable email field on WooCommerce customer account details
- Schedule cron event from widget
- Customizing the default logout page of WordPress
- Is there a filter hook that I can use to change how taxonomy term names are displayed?
- How to add rewrite rules and pagination to retrieve attachments files?
- How to get multiple Action Hooks in an Array
- woocommerce Add custom field set like billing fields
- Edit admin post page
- Creating Search Engine Friendly URL’s with Word Press
- Make wordpress generate a custom XML file(not a sitemap) that is updated only when new content is posted?
- Why do posts disappear from admin after upgrading from WP 2.7.1 to 3.0.1?
- Viewing checkout page removes fees from mini cart
- Best place for short bio,image and button [closed]
- Qtranslate + Woocommerce (multiple tinymce) [closed]
- Changing settings of WooCommerce
- Plugin Development – Functions or Hooks?
- Woocommerce – Print Product’s Custom Field In Email
- Advanced WordPress plugin activation detection
- How to append custom text to the output of ‘categories widget’?
- How to load a mycred hook from a plugin?
- How Can I limit the visible part of the short-description on the Category page?
- Translating (WooCommerce) placeholder text
- Customize Widget Navigation
- Hook before user is created and make some custom validation
- How to make WordPress search page use a relative path
- How can Use custom input field in functions.php page?
- customer specific email attachment
- Customize plugin templates
- Check get_post value after wp-admin login
- How to append the excerpt to the content in the single post page?
- Creating Action Hooks For Automatic File Inclusion
- Change post template the proper way
- Display_rows() and column_cb() strange behaviour
- Customizing the built-in Media Playlist
- How to make my wordpress site responds for 2 domains
- Custom Slider Per Page created
- How wordpress plugin hooks works? [duplicate]
- Admin new order email customization
- Consolidate ‘add-to-cart’ buttons into one ‘add-all-to-cart’ button
- Particle.js not loading in WordPress Gutenberg
- How to Add Extra Text In WordPress Title Before Post Publish
- Looking for a lightweight theme using WP3 new tags and features (not 2010) [closed]
- GPL and plugins
- Creating my own Admin Forms in a WordPress CMS?
- Create page when plugin is activated
- Custom taxonomy: same terms, but for different years
- Best practices for A/B testing?
- Editing the Number at the end of Page URLs / Editing Page Slugs
- Post source link plugin – small modification
- How to add users roles dropdown in registration in wordpress
- Can I use $wpdb for my custom tables in the WordPress database?
- Integrating MailChimp newsletters as post
- Can a plugin add to header/footer/body content?
- What is WordPress file encoding?
- Auto add taxonomy if post has category
- Add a containing DIV to core Gutenberg blocks
- Are there any security issues with setting the WP_INSTALLING constant to true?
- Output HTML only on individual post view
- add action for displaying posts using a shortcode
- Pass info from functions.php to plugin
- Change permalink structure hidden button edit
- Author Tracking Code!
- get current date + 90 days and checking every day
- How can I create a second multisite network in a subdirectory?
- CSS Styling a specific page
- Plugin to allow registered users to customize their layout [closed]
- Custom Columns WordPress Admin
- How to use a WooCommerce action hook?
- WP function duplicating body content
- How to add page content into another page
- Remove Sidebars from page
- Change default Video Player without Plugin
- Changing update message from Newspaper child theme
- Custom default settings for WP native Gallery Block
- Callback hooked to post_updated firing on new posts as well
- the temporary save folder is wrong
- Can I upload my self hosted WordPress website on GitHub as a project? [closed]
- Need to replace some text string on a title
- Custom roles and capabilities media not work right
- How to check which submission button was clicked?
- How should I use a plugin function as a hook?
- Custom WP deactivate an email activation link sent to user’s email.
- Page template with custom html fields inside a content
- Pronamic Info Window
- Multiple Customizers
- Child Plugin Admin Panel
- How do I add functionality to images?