I hereby claim:
- I am shaunkrd on github.
- I am shaunkrd (https://keybase.io/shaunkrd) on keybase.
- I have a public key ASCv3ivGG5HV6jRIApAzxQfmgIMRgBSA8pc17aCO6ls5dwo
To claim this, I am signing this object:
{"lastUpload":"2018-08-08T14:27:18.981Z","extensionVersion":"v3.0.0"} |
I hereby claim:
To claim this, I am signing this object:
// Give editors access to 'Appearance' menu | |
// get the the role object | |
$role_object = get_role( 'editor' ); | |
// add $cap capability to this role object | |
$role_object->add_cap( 'edit_theme_options' ); |
<?php if (is_date()) : ?> | |
<?php | |
// get the date filter to display below | |
if ( is_day() ) $date_filter = get_the_date('F jS Y'); | |
else if ( is_month() ) $date_filter = get_the_date('F Y'); | |
else if ( is_year() ) $date_filter = get_the_date('Y'); | |
?> | |
<p>Archive for: <?php echo $date_filter; ?></p> | |
<?php endif; // END if (is_date()) ?> |
function replace_howdy( $wp_admin_bar ) { | |
$my_account=$wp_admin_bar->get_node('my-account'); | |
$newtitle = str_replace( 'Howdy,', 'Logged in as', $my_account->title ); | |
$wp_admin_bar->add_node( array( | |
'id' => 'my-account', | |
'title' => $newtitle, | |
) ); | |
} | |
add_filter( 'admin_bar_menu', 'replace_howdy',25 ); |