c_ws_plugin__s2member_utils_conds
public class c_ws_plugin__s2member_utils_conds
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 | Checks to see if we're in a localhost environment. |
public static bool | 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 | Determines whether or not s2Member Pro is installed. |
public static bool | Checks to see if we're using Amazon® CloudFront. |
public static bool | Checks to see if we're using Amazon® S3. |
public static bool bp_is_installed(bool $query_active_plugins)
Determines whether or not BuddyPress is installed.
110720
bool $query_active_plugins - Optional. If true, this conditional will query active plugins too. Defaults to true if s2Member → WS_PLUGIN__S2MEMBER_ONLY is true, else false.
bool - True if BuddyPress is installed, else false.
public static bool in_descendant_category(array $cats, int|str $post_id)
Checks if a Post is in a child Category.
3.5
array $cats - An array of Category IDs.
int|str $post_id - A numeric WordPress® Post ID.
bool - True if the Post is inside a desendant of at least one of the specified Categories; else false.
public static bool is_localhost()
Checks to see if we're in a localhost environment.
111101
bool - True if we're in a localhost environment, else false.
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"
.
3.5
bool - True if this is a Multisite Farm, else false.
public static bool is_site_root(str $url_uri)
Checks to see if a URL/URI leads to the site root.
3.5
str $url_uri - Either a full URL, or a partial URI to test.
bool - True if the URL or URI leads to the site root, else false.
public static bool pro_is_installed()
Determines whether or not s2Member Pro is installed.
110720
bool - True if s2Member Pro is installed, else false.
public static bool using_amazon_cf_storage()
Checks to see if we're using Amazon® CloudFront.
110926
bool - True if using Amazon® CloudFront, else false.
public static bool using_amazon_s3_storage()
Checks to see if we're using Amazon® S3.
110926
bool - True if using Amazon® S3, else false.
Conditional utilities.