newblog_notify_siteadmin [ WordPress Function ]
newblog_notify_siteadmin ( $blog_id, $deprecated = '' )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Benzer Fonksiyonlar: newuser_notify_siteadmin, wp_new_blog_notification, is_site_admin, wpmu_signup_blog_notification, wp_notify_postauthor
Notifies the network admin that a new site has been activated.
Filter 'newblog_notify_siteadmin' to change the content of the notification email.
Source
<?php
function newblog_notify_siteadmin( $blog_id, $deprecated = '' ) {
if ( get_site_option( 'registrationnotification' ) != 'yes' )
return false;
$email = get_site_option( 'admin_email' );
if ( is_email($email) == false )
return false;
$options_site_url = esc_url(network_admin_url('settings.php'));
switch_to_blog( $blog_id );
$blogname = get_option( 'blogname' );
$siteurl = site_url();
restore_current_blog();
$msg = sprintf( __( 'New Site: %1s
URL: %2s
Remote IP: %3s
Disable these notifications: %4s' ), $blogname, $siteurl, $_SERVER['REMOTE_ADDR'], $options_site_url);
$msg = apply_filters( 'newblog_notify_siteadmin', $msg );
wp_mail( $email, sprintf( __( 'New Site Registration: %s' ), $siteurl ), $msg );
return true;
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/newblog notify siteadmin « WordPress Codex
Description. Notifies the network admin that a new site has been activated. Filter ' newblog_notify_siteadmin' to change the content of the notification email.
codex.wordpress.org - WordPress Multi-Site Function List » HN.Net WordPress Plugins
Jun 20, 2010... $path, $title, $user_id, $meta = ”, $site_id = 1); newblog_notify_siteadmin( $ blog_id, $deprecated = ” ); insert_blog($domain, $path, $site_id) ...
holisticnetworking.net - ms-functions.php - PHP Cross Reference of WordPress Source - Yoast
Jun 1, 2011 ... wpmu_create_user() wpmu_create_blog() newblog_notify_siteadmin() newuser_notify_siteadmin() domain_exists() insert_blog() install_blog() ...
xref.yoast.com - Direct download - Velmont Tech - Odin Hørthe Omdal
... 4, 1 ); add_filter( 'newblog_notify_siteadmin', 'remove_domain_part_filter', 4, 1 ) ; function remove_domain_part_activationemail($msg, $domain, $path, $title, ...
tech.velmont.net