# s2member/110912/includes/functions/pluggables.inc.php

s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls &amp; Member Access Subscriptions, version 110912. 43 lines.

- Page: https://pluginprobe.com/plugins/s2member/110912/code/includes/functions/pluggables.inc.php
- Raw: https://pluginprobe.com/plugins/s2member/110912/raw/includes/functions/pluggables.inc.php
- Modified: 2011-09-13T04:57:06+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/s2member/110912/code/includes/functions/pluggables.inc.php#L10-L20`.

```php
<?php
/**
* Pluggable functions within WordPress®.
*
* Copyright: © 2009-2011
* {@link http://www.websharks-inc.com/ WebSharks, Inc.}
* ( coded in the USA )
*
* Released under the terms of the GNU General Public License.
* You should have received a copy of the GNU General Public License,
* along with this software. In the main directory, see: /licensing/
* If not, see: {@link http://www.gnu.org/licenses/}.
*
* @package s2Member
* @since 110707
*/
if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
	exit ("Do not access this file directly.");
/**/
if (!function_exists ("wp_new_user_notification"))
	{
		/**
		* New User notifications.
		*
		* The arguments to this function are passed through the class method.
		*
		* @package s2Member
		* @since 110707
		*
		* @return class Return-value of class method.
		*/
		if ($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["new_user_emails_enabled"])
			{
				function wp_new_user_notification () /* Accepts any number of arguments. */
					{
						$args = func_get_args (); /* Pulls the arguments passed in to this function. */
						/**/
						return call_user_func_array ("c_ws_plugin__s2member_email_configs::new_user_notification", $args);
					}
			}
		$GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["pluggables"]["wp_new_user_notification"] = true;
	}
?>
```
