Access 'post data' in hook 'tf_create_options'
-
Hi,
I’m clearly missing something. I’ve hooked into ‘tf_create_options’ to add my post meta boxes but in this function i can’t access the global $post to make decisions about what meta box fields show? I understand from this that obviously ‘tf_create_options’ is called before ‘init’. I know that i could call this in ‘init’ rather than ‘tf_create_options’ but is there any other proper way of accessing global post?
- The topic ‘Access 'post data' in hook 'tf_create_options'’ is closed to new replies.