Skip to content

Instantly share code, notes, and snippets.

@reasonstousegenesis
Created October 28, 2015 01:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reasonstousegenesis/8334c417c78cdaebf605 to your computer and use it in GitHub Desktop.
Save reasonstousegenesis/8334c417c78cdaebf605 to your computer and use it in GitHub Desktop.
Customize the clickable text of the private edit link
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Customize the clickable text of the private edit link
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/edit-link/
*/
add_filter( 'genesis_post_meta', 'rtug_edit_link_custom' );
function rtug_edit_link_custom() {
return '[post_edit link="Private Link to Edit This Article"]';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment