Home » Topics » Technical and configuration issues » Actions and filters » Disable duplicate calls to WP_Post::get_instance
Is there any hook/code to disable these extra calls?
There is no hook to bypass this code.
Okay, Can we stop these from code :
get_post_type, get_post_thumbnail_id – as we have a single post type product indexed, and thumbnails we arent uploading, Can we stop this call.
I disabled the call to image, Is this okay or can this be achieved anywhere from plugin settings ?
any update on this pls
There is nothing in settings to do that.
Okay, is this code fine then ? as we dont need any thumbnail features
Your customization will be erased when you’ll update WPSOLR.
You could instead update your theme’s archive templates to prevent displaying the thumbnails.
we arent displaying any thumbnails or calling it in archives template, but still there were duplicate calls, so find this wpsolr plugn template, where the call was happening. I am okay with the changes getting erased while updating.
May I know where these are being used ?
get_post_thumbnail_id() and $model->get_permalink( $url_is_edit, $post_id ), as I want to comment this code.
To fill the posts content before give them back to the theme for rendering with the post loop.
You must be logged in to reply to this topic.