I am new in WordPress.I am learning Plugin Development. Is it possible to use Nested add_action()
like below ?
add_action( 'admin_post_addAddress', 'add_new_address' );
function add_new_address(){
if($_POST['name'] == '') {
add_action( 'admin_notices', 'my_acf_notice' );
}
function my_acf_notice() {
//Some code
}
}