Last active
June 6, 2018 07:12
-
-
Save samikeijonen/58b38c8dc94d6c27086260e1128f0dfc to your computer and use it in GitHub Desktop.
Register page template in HC5
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
<?php | |
use function Hybrid\register_object_template; | |
add_action( 'hybrid/register_object_templates', function() { | |
register_object_template( 'example', [ | |
'label' => __( 'Example' ), | |
'filename' => 'example.php' | |
] ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment