Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
/**
* Figure out basename of current page
*
*/
function be_test_basename() {
echo basename($_SERVER['PHP_SELF']);
}
add_action( 'genesis_before', 'be_test_basename' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment