| 1 |
<?php |
| 2 |
/** |
| 3 |
* Pluggable functions within WordPress®. |
| 4 |
* |
| 5 |
* Copyright: © 2009-2011 |
| 6 |
* {@link http://www.websharks-inc.com/ WebSharks, Inc.} |
| 7 |
* ( coded in the USA ) |
| 8 |
* |
| 9 |
* Released under the terms of the GNU General Public License. |
| 10 |
* You should have received a copy of the GNU General Public License, |
| 11 |
* along with this software. In the main directory, see: /licensing/ |
| 12 |
* If not, see: {@link http://www.gnu.org/licenses/}. |
| 13 |
* |
| 14 |
* @package s2Member |
| 15 |
* @since 110707 |
| 16 |
*/ |
| 17 |
if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"])) |
| 18 |
exit ("Do not access this file directly."); |
| 19 |
/**/ |
| 20 |
if (!function_exists ("wp_new_user_notification")) |
| 21 |
{ |
| 22 |
/** |
| 23 |
* New User notifications. |
| 24 |
* |
| 25 |
* The arguments to this function are passed through the class method. |
| 26 |
* |
| 27 |
* @package s2Member |
| 28 |
* @since 110707 |
| 29 |
* |
| 30 |
* @return class Return-value of class method. |
| 31 |
*/ |
| 32 |
if ($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["new_user_emails_enabled"]) |
| 33 |
{ |
| 34 |
function wp_new_user_notification () /* Accepts any number of arguments. */ |
| 35 |
{ |
| 36 |
$args = func_get_args (); /* Pulls the arguments passed in to this function. */ |
| 37 |
/**/ |
| 38 |
return call_user_func_array ("c_ws_plugin__s2member_email_configs::new_user_notification", $args); |
| 39 |
} |
| 40 |
} |
| 41 |
$GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["pluggables"]["wp_new_user_notification"] = true; |
| 42 |
} |
| 43 |
?> |