WordPress.org

Ready to get started?Download WordPress

Forums

Event Organiser
No hooks on edit venues page in admin (5 posts)

  1. Ben Huson
    Member
    Posted 2 years ago #

    There are no hooks to be able to add/save extra fields on the edit venue pages in the admin.

    As a developer, it would be very useful to be able to be able to add extra fields here.

    A couple of simple action hooks would be useful.

    BTW, Great work on the plugin.

    - Ben

    http://wordpress.org/extend/plugins/event-organiser/

  2. Stephen Harris
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Ben,
    Yup, I've been slow to add in actions and filters - something I've been meaning to do for a while.

    I shan't be be plastering the plug-in with hooks just yet - since I want to think about naming conventions and where best to put them. But let me know if there are any that you would find useful :)

    I shall try to get some some venue admin hooks added into 1.3.3 (out this week). If not, it may be kicked to 1.4.

    Thanks

  3. Ben Huson
    Member
    Posted 2 years ago #

    Thanks Stephen,

    I completely understand - don't rush it. Make sure to get a hook naming convention sorted as I've previously found that frustrating in plugins that I have developed that have evolved over time.

    - Ben

  4. Stephen Harris
    Member
    Plugin Author

    Posted 2 years ago #

    Are these extra fields to sit inside the venue location metabox? I'd rather be adding hooks there than anywhere else at the moment. I might consider allow extra metaboxes to be registered for the page.

    I shall also be adding the following actions:

    • eventorganiser_insert_venue - runs when a venue is created
    • eventorganiser_save_venue - runs when a venue is created/update
    • eventorganiser_delete_venue - runs when a venue is deleted

    Each of these will pass the term ID of the appropriate 'event-venue' term and also the slug (which can be used to reference the necessary meta details). Of course these are kind of redundant since there are WordPress hooks which will pass the term ID (from which you can get thes slug). But the above hooks are fired after the *_eo_venues table is updated.

  5. Stephen Harris
    Member
    Plugin Author

    Posted 2 years ago #

    @Ben - please see this post: http://www.harriswebsolutions.co.uk/event-organiser/general-announcements/2012/major-changes-in-1-4/

    If anyone wants to volunteer to test this in beta, let me know :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic