Exemplo n.º 1
0
 /**
  * Register access in BuddyPress, for Multisite compatibility.
  *
  * BuddyPress bypasses the default Filter `pre_site_option_registration`, and instead uses: ``bp_core_get_root_options()``.
  *
  * @package s2Member\Option_Forces
  * @since 3.5
  *
  * @attaches-to ``add_filter("bp_core_get_root_options");``
  * @attaches-to ``add_filter("bp_core_get_site_options");`` **(before BuddyPress v1.5)**.
  *
  * @param array $site_options Expects array of BuddyPress site options.
  * @return array Site options array, after having been Filtered by this routine.
  */
 public static function check_bp_mms_register_access($site_options = FALSE)
 {
     if (is_multisite()) {
         // Only if Multisite Networking is enabled. Pointless otherwise.
         $site_options["registration"] = c_ws_plugin__s2member_option_forces::check_mms_register_access($site_options["registration"]);
     }
     return apply_filters("ws_plugin__s2member_check_bp_mms_register_access", $site_options, get_defined_vars());
 }