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

27th May 2024

This update addresses backwards compatibility issues that were introduced in the previous update. There were some edge cases where PHP 7 had issues and it didn’t work at all on PHP 5.6. We have now changed it so that the PHP 8 compatibility changes will now only affect PHP 8 and will be more thorough… 

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