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.3.10 is now available

9th November 2023

MasterPress 1.3.10 is a feature and bugfix release. Workaround for fatal error introduced by changes to WordPress’ wpdb class in WordPress 6.4. Added actions to MPC files upload_field & WF image save_image functions.

Plugin Requirements

MasterPress requires a minimum of WordPress version 4.9, MySQL 5.6, and PHP version 5.6.20.

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.

Three AM