Forums

add_action variable in tag position (1 post)

  1. Matthew
    Member
    Posted 4 months ago #

    I am trying to hook custom post types on the publish action, specifically for the Multipost MU plugin. Since CPTS are, well, custom, there is no way to hardcode those into a plugin.

    I have tried several methods of making this work from concatenation inside the add_action, which doesn't work.

    I found that a simple array does work. I tried to construct that array dynamically but WP sez noway.

    Has anybody successfully accomplished this?

    This is close to what I want to do, but not quite. The hooks are predefined.

    This is closer, but again, no dice.

    Here is the code I am currently trying, which, also doesn't work.

    http://pastebin.com/ZgCif0Vc

Reply

You must log in to post.

About this Topic