The all action is extremely resource intensive
-
Getting this warning from Query Monitor and not sure if it matters.
Warning: The all action is extremely resource intensive. Try to avoid using it. 10
–
Closure on line 10 of wp-content/plugins/site-reviews/helpers.php
wp-content/plugins/site-reviews/helpers.php:1010 add_filter( ‘all’, function() {
11 $args = func_get_args();
12 $hook = array_shift( $args );
13 $hooks = array(
14 ‘glsr’,
15 ‘glsr_calculate_ratings’,
16 ‘glsr_create_review’,
17 ‘glsr_debug’,
18 ‘glsr_get_option’, ‘glsr_get_options’,
19 ‘glsr_get_review’, ‘glsr_get_reviews’,
20 ‘glsr_log’,
21 ‘glsr_star_rating’,
22 );
23 if( !in_array( $hook, $hooks ) || !function_exists( $hook ))return;
24 add_filter( $hook, function() use( $hook, $args ) {
25 array_shift( $args ); // remove the fallback value
26 return call_user_func_array( $hook, $args );
27 });
28 });
- The topic ‘The all action is extremely resource intensive’ is closed to new replies.