Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action('setup_theme', function () {
- if (!function_exists('glsr')) {
- return;
- }
- $hook = 'woocommerce_single_product_summary';
- $method = 'renderTitleRating';
- $controller = 'GeminiLabs\SiteReviews\Integrations\WooCommerce\Controllers\ProductController';
- $callback = glsr('Compatibility')->findCallback($hook, $method, $controller) ?? [];
- if (empty($callback['function'])) {
- return;
- }
- remove_action('woocommerce_single_product_summary', $callback['function'], 10);
- add_action('woocommerce_single_product_summary', $callback['function'], 6); // change priority to 6
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement