Disable duplicate calls to WP_Post::get_instance

  • 10 months, 2 weeks ago #33705

    Is there any hook/code to disable these extra calls?
    Image image.png of Disable duplicate calls to WP_Post::get_instance

    wpsolr
    Keymaster
    10 months, 2 weeks ago #33706

    There is no hook to bypass this code.

    10 months, 2 weeks ago #33751

    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.

    10 months, 2 weeks ago #33753

    I disabled the call to image, Is this okay or can this be achieved anywhere from plugin settings ?
    Image image.png of

    10 months, 2 weeks ago #33795

    any update on this pls

    wpsolr
    Keymaster
    10 months, 2 weeks ago #33803

    There is nothing in settings to do that.

    10 months, 2 weeks ago #33807

    Okay, is this code fine then ? as we dont need any thumbnail features

    wpsolr
    Keymaster
    10 months, 2 weeks ago #33810

    Your customization will be erased when you’ll update WPSOLR.

    You could instead update your theme’s archive templates to prevent displaying the thumbnails.

    10 months, 2 weeks ago #33812

    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.

    10 months, 2 weeks ago #33815

    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.

    wpsolr
    Keymaster
    10 months, 2 weeks ago #33829

    To fill the posts content before give them back to the theme for rendering with the post loop.

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.