Created
July 20, 2015 12:09
-
-
Save alessandrotesoro/c1401c359f83acffcb0e to your computer and use it in GitHub Desktop.
Add custom directory template to dropdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wpum_add_custom_directory_template( $templates ) { | |
$templates['custom'] = 'Custom Template'; | |
return $templates; | |
} | |
add_filter( 'wpum_get_directory_templates', 'wpum_add_custom_directory_template' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment