Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action('wp', 'check_home');
- // or add_action('init', 'check_home');
- function check_home($param)
- {
- if (is_home()):
- echo 'User is on the homepage.';
- else:
- echo 'User is not on the homepage';
- endif;
- }
Add Comment
Please, Sign In to add comment