Advertisement
geminilabs

Untitled

Jul 18th, 2023 (edited)
933
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1. add_action('after_setup_theme', function () {
  2.     if (!function_exists('glsr')) {
  3.         return;
  4.     }
  5.     $fn = glsr('Compatibility')->findCallback(
  6.         'woocommerce_single_product_summary',
  7.         'renderTitleRating',
  8.         '\GeminiLabs\SiteReviews\Integrations\WooCommerce\Controllers\ProductController'
  9.     );
  10.     if (!empty($fn['function'])) {
  11.         $priority = 15; // change this as needed
  12.         remove_action('woocommerce_single_product_summary', $fn['function']);
  13.         add_action('woocommerce_single_product_summary', $fn['function'], $priority);
  14.     }
  15. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement