You can combine add_action()
and an is_admin()
check:
! is_admin() and add_action( 'init', 'my_custom_callback' );
Now the callback function will run on front-end only.
You can combine add_action()
and an is_admin()
check:
! is_admin() and add_action( 'init', 'my_custom_callback' );
Now the callback function will run on front-end only.