Advertisement
geminilabs

Untitled

Jul 18th, 2023
833
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1. add_action('setup_theme', function () {
  2.     if (function_exists('glsr')) {
  3.         $controller = glsr('Integrations\WooCommerce\Controllers\ProductController');
  4.         $priority = 40; // change this as needed
  5.         remove_action('woocommerce_single_product_summary', [$controller, 'renderTitleRating']);
  6.         add_action('woocommerce_single_product_summary', [$controller, 'renderTitleRating'], $priority);
  7.     }
  8. });
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement