Removing actions?

Home Forums Calendar Products Events Calendar PRO Removing actions?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #56979
    Ben
    Participant

    I’ve been trying to replace an action to create a new custom meta field type. It works fine, but I’m not able to remove the original action using the following code:

    remove_action(‘tribe_settings_after_content_tab_additional-fields’, array(‘TribeEventsCustomMeta’, ‘event_meta_options’), 10);

    If I put this in functions.php or my own plugin, it has no effect. It does work if I place it in the TribeEventsCustomMeta init function, but I don’t want to do that for obvious reasons. Any advice?

    #57222
    Jonah
    Participant

    Hi Ben,

    What about placing it in it’s own function and attaching it to the WordPress init action?

    – Jonah

    #57225
    Ben
    Participant

    That did it. Thanks so much for your help.

    #57341
    Jonah
    Participant

    You’re welcome Ben, let us know if there’s anything else you need help with.

    – Jonah

    #979978
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Removing actions?’ is closed to new replies.