API call on every fetch custom-post in loop
-
plugin version 1.5.3
I look into file
/convertkit/includes/class-convertkit-custom-content.phpon line 64~~~~
add_action( ‘the_post’, array( $this, ‘maybe_tag_subscriber’ ), 50 );
~~~~it fired API call on every I fetch custom-post in the loop, it makes website slower when I fetch custom-post which is the API call not necessary
~~~~
$custom_posts = new WP_Query([
‘post_type’=>’some_custom_post’
]);
while ( $custom_posts->have_posts() ) {
$custom_posts->the_post(); // it will fired API call
…
~~~~
The topic ‘API call on every fetch custom-post in loop’ is closed to new replies.