Saturday, May 21, 2016

WordPress get admin email address

In WordPress there is a administrator who manages pages, posts and every content of the site.

He can also manage and provide roles to other users. If you want to the get the email address of the site administrator you can use the following function.

<?php
$admin_email = bloginfo('admin_email');
?>

$admin_email will give you the email address of the site administrator.

No comments:

Post a Comment

MS SQL : How to identify fragmentation in your indexes?

Almost all of us know what fragmentation in SQL indexes are and how it can affect the performance. For those who are new Index fragmentation...