WOOF_Site

Extends WOOF_Wrap

Methods

Represents either a single site within a WordPress multisite network or simply just the encompassing site for a single-site installation.

Example: Obtaining a WOOF_Site

List of Methods

Property Methods

  • archived()Boolean

    Retrieves the archived property of this site – archived sites are not accessible to users.

  • deleted()Boolean

    Retrieves the deleted property of this site.

  • full_path()String

    Retrieves the full path to this site, which in this case refers to the full url without the protocol part.

  • id()Integer

    Retrieves the database ID of this site, which is referred to internally as the “blog_id”.

  • is_public()Boolean

    Retrieves the is_public property of this site, i.e.

  • last_updated( String $format = null )String OR Integer

    Gets the last updated date of this site, as in, when the site options were last changed in WordPress.

  • mature()String

    Retrieves the mature property of this site (marked to contain mature content).

  • name()String

    Retrieves the name of this site, as setup in WordPress.

  • network_id()Integer

    Retrieves the ID of the network that this site is contained in.

  • registered( String $format = null )String OR Integer

    Retrieves the date this site was created in WordPress.

  • spam()Boolean

    Retrieves the spam status of this site, used when you find a spam site but aren’t completely sure it’s spam so you mark it as spam.

  • title()String

    An alias of the WOOF_Site::name method to retrieves the name of this site, as setup in WordPress.

  • url( Boolean $root_relative = false )String

    Gets the URL to this site.

Theming

  • archived()Boolean

    Retrieves the archived property of this site – archived sites are not accessible to users.

  • deleted()Boolean

    Retrieves the deleted property of this site.

  • full_path()String

    Retrieves the full path to this site, which in this case refers to the full url without the protocol part.

  • id()Integer

    Retrieves the database ID of this site, which is referred to internally as the “blog_id”.

  • is_public()Boolean

    Retrieves the is_public property of this site, i.e.

  • last_updated( String $format = null )String OR Integer

    Gets the last updated date of this site, as in, when the site options were last changed in WordPress.

  • mature()String

    Retrieves the mature property of this site (marked to contain mature content).

  • name()String

    Retrieves the name of this site, as setup in WordPress.

  • network_id()Integer

    Retrieves the ID of the network that this site is contained in.

  • registered( String $format = null )String OR Integer

    Retrieves the date this site was created in WordPress.

  • spam()Boolean

    Retrieves the spam status of this site, used when you find a spam site but aren’t completely sure it’s spam so you mark it as spam.

  • title()String

    An alias of the WOOF_Site::name method to retrieves the name of this site, as setup in WordPress.

  • url( Boolean $root_relative = false )String

    Gets the URL to this site.

Base Class Methods

View method list from the base class WOOF_Wrap.

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