Source Code Documentation


Field Summary | Method Summary | Field Detail | Method Detail

Package s2Member\Utilities

s2member\includes\classes\utils-conds.inc.php at line #28

Class c_ws_plugin__s2member_utils_conds

c_ws_plugin__s2member_utils_conds

public class c_ws_plugin__s2member_utils_conds

Conditional utilities.

Since:

3.5


( 8 Methods )
Method Summary
public static bool

bp_is_installed(bool $query_active_plugins)

Determines whether or not BuddyPress is installed.

public static bool

in_descendant_category(array $cats, int|str $post_id)

Checks if a Post is in a child Category.

public static bool

is_localhost()

Checks to see if we're in a localhost environment.

public static bool

is_multisite_farm()

Determines whether or not this is a Multisite Farm; *( i.e.

public static bool

is_site_root(str $url_uri)

Checks to see if a URL/URI leads to the site root.

public static bool

pro_is_installed()

Determines whether or not s2Member Pro is installed.

public static bool

using_amazon_cf_storage()

Checks to see if we're using Amazon® CloudFront.

public static bool

using_amazon_s3_storage()

Checks to see if we're using Amazon® S3.

( 8 Methods )
Method Detail

s2member\includes\classes\utils-conds.inc.php at line #51

bp_is_installed()

public static bool bp_is_installed(bool $query_active_plugins)

Determines whether or not BuddyPress is installed.

Since:

110720

Parameters:

bool $query_active_plugins - Optional. If true, this conditional will query active plugins too. Defaults to true if s2MemberWS_PLUGIN__S2MEMBER_ONLY is true, else false.

Returns:

bool - True if BuddyPress is installed, else false.

[ back to top ]

s2member\includes\classes\utils-conds.inc.php at line #97

in_descendant_category()

public static bool in_descendant_category(array $cats, int|str $post_id)

Checks if a Post is in a child Category.

Since:

3.5

Parameters:

array $cats - An array of Category IDs.

int|str $post_id - A numeric WordPress® Post ID.

Returns:

bool - True if the Post is inside a desendant of at least one of the specified Categories; else false.

[ back to top ]

s2member\includes\classes\utils-conds.inc.php at line #137

is_localhost()

public static bool is_localhost()

Checks to see if we're in a localhost environment.

Since:

111101

Returns:

bool - True if we're in a localhost environment, else false.

[ back to top ]

s2member\includes\classes\utils-conds.inc.php at line #83

is_multisite_farm()

public static bool is_multisite_farm()

Determines whether or not this is a Multisite Farm; ( i.e. if MULTISITE_FARM == true inside /wp-config.php ).

With s2Member, this option may also indicate a Multisite Blog Farm. $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["mms_registration_file"] === "wp-signup".

Since:

3.5

Returns:

bool - True if this is a Multisite Farm, else false.

[ back to top ]

s2member\includes\classes\utils-conds.inc.php at line #116

is_site_root()

public static bool is_site_root(str $url_uri)

Checks to see if a URL/URI leads to the site root.

Since:

3.5

Parameters:

str $url_uri - Either a full URL, or a partial URI to test.

Returns:

bool - True if the URL or URI leads to the site root, else false.

[ back to top ]

s2member\includes\classes\utils-conds.inc.php at line #38

pro_is_installed()

public static bool pro_is_installed()

Determines whether or not s2Member Pro is installed.

Since:

110720

Returns:

bool - True if s2Member Pro is installed, else false.

[ back to top ]

s2member\includes\classes\utils-conds.inc.php at line #171

using_amazon_cf_storage()

public static bool using_amazon_cf_storage()

Checks to see if we're using Amazon® CloudFront.

Since:

110926

Returns:

bool - True if using Amazon® CloudFront, else false.

[ back to top ]

s2member\includes\classes\utils-conds.inc.php at line #152

using_amazon_s3_storage()

public static bool using_amazon_s3_storage()

Checks to see if we're using Amazon® S3.

Since:

110926

Returns:

bool - True if using Amazon® S3, else false.

[ back to top ]

Source Code Documentation


Field Summary | Method Summary | Field Detail | Method Detail