Skip to content

Does the ‘sites’ parameter allow negative int for exclusion? #1781

Closed
@laiconsulting

Description

Can I do

new WP_Query( array(
    's'     => 'search phrase',
    'sites' => array( -2, -3 ),
) );

to exclude site 2 and 3?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

enhancementmultisiteIssues related to multisite installations

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions