Last active
July 10, 2019 06:27
-
-
Save imran-khan1/5275fb8d6f9b81dc9286b698e76d5c83 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
/* | |
custom action hook | |
*/ | |
do_action( 'my_custom_action' ); | |
//Place the code for the action when fired | |
function my_action_something_cool() { | |
echo '<p>This text will be displayed</p>'; | |
} | |
add_action('my_custom_action', 'my_action_something_cool'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment