Set Do not search checkbox via WP All Import

  • jnears
    Participant
    1 month, 3 weeks ago #53431

    Hi

    I import XML data via WP All Import to create and update posts.

    We have added a new tag ‘<search_exclude>yes</search_exclude>’ (this could be changed to 0 or 1).

    I would like to programmatically set the WPSolr ‘Do not search’ checkbox to checked if the value is ‘yes’. Is this possible?

    Many thanks

    wpsolr
    Keymaster
    1 month, 3 weeks ago #53432

    WPSOLR_Events::WPSOLR_FILTER_SQL_QUERY_STATEMENT can be used to filter indexed data: https://www.wpsolr.com/forums/reply/30869/

    jnears
    Participant
    1 month, 2 weeks ago #53437

    Great thanks – this works well!

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

You must be logged in to reply to this topic.