WOOF :: get_sites( Arguments $args = array() )

Returns:

  • Array An associative array of site objects (standard objects based on stdClass).

Issue a query on the sites in your multisite network.

Note: use the WOOF::sites method, which accepts the same arguments, to return a collection of WOOF_Site objects instead.  

Example:

Parameters:

  • Arguments $args = array()

    An arguments array or string with the following params:

    • include_id => ”, // includes only these sites in the results, comma-delimited
    • exclude_id => ”, // excludes these sites from the results, comma-delimted
    • blogname_like => ”, // domain or path is like this value
    • ip_like => ”, // Match IP address
    • reg_date_since => ”, // sites registered since (accepts pretty much any valid date like tomorrow, today, 5/12/2009, etc.)
    • reg_date_before => ”, // sites registered before
    • include_user_id => ”, // only sites owned by these users, comma-delimited
    • exclude_user_id => ”, // don’t include sites owned by these users, comma-delimited
    • include_spam => false, // Include sites marked as “spam”
    • include_deleted => false, // Include deleted sites
    • include_archived => false, // Include archived sites
    • include_mature => false, // Included blogs marked as mature
    • public_only => true, // Include only blogs marked as public
    • sort_column => ‘registered’,// or registered, last_updated, blogname, site_id.
    • order => ‘asc’, // or desc
    • limit_results => ”, // return this many results
    • start => ”, // return results starting with this item

Latest From the Blog

MasterPress 1.1.4 now available

MasterPress 1.1.4 is now available. This release contains an important compatibility fix for WordPress 4.5 to allow correct detection of the taxonomy term editing screen. Without this fix, any custom fields you have attached to custom taxonomies will not be shown at all in the editing form. Note also that MasterPress will still detect the edit screen correctly in… 

Plugin Requirements

MasterPress requires a minimum of WordPress version 3.4, MySQL 5, and PHP version 5.2.4.

We also recommend that PHP is configured to use a memory limit of 64MB per request (128MB may be required for sites with higher complexity).

This plug-in is not compatible with the WordPress.com hosted service.

Traversal