• is this possible . all i need is to be able to call register_post_type from inside a function but it wont work for me without add_action – sorry maybe i’m not that well up on how add add action works but i didnt think it was mandatory to call register_post_type via add_action … can someone please help me ? even a rough pointer in the right direction might be enough

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter byronyasgur

    (@byronyasgur)

    sorry this should have been titled a button to register a custom post type – and i know i can use a plugin but i need it in the code, thanks

    Thread Starter byronyasgur

    (@byronyasgur)

    got this working in case it’s of any help to anyone – you have to use the form to set an option in the options table ( eg the name of the custom post type) and then fire a function via init to check for this option and IF it exists THEN register_post_type

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘a button to create a custom post’ is closed to new replies.