condition check always fails in functions.php
-
there’s a bug in previously if the code was
if (in_array(get_post_type(), array(‘books’,’authors’))){
function update_info( $post_id ) {}} then when the posttype was either books or author the function would run but now it never runs unless the if statement is totally remove
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘condition check always fails in functions.php’ is closed to new replies.