Last active
July 17, 2022 15:51
-
-
Save frontend-coder/cf7a571d9c8619ac13471361a0e6cf85 to your computer and use it in GitHub Desktop.
39. Як створити власний хук крючок #wordpress
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 domain_name_func() { | |
echo 'Text'; | |
} | |
add_action('domain_name_hook','domain_name_func', 10); |
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
// Розмістити в місці, де повинний виведенний код, який буде привязаний до створенного хука | |
do_action('domain_name_hook'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment