WordPress.org

Ready to get started?Download WordPress

Forums

JSON API
Place for custom controller that is safe from updates? (4 posts)

  1. Chris
    Member
    Posted 1 year ago #

    I couldn't find the information, sorry if I missed it:

    I would like to use a custom controller (for the Verite timeline plugin) but I'm afraid that in the controllers folder it would be overwritten every time I update the plugin. Is there another possibility to place that file - outside plugins and themes folders or, since code should probably not be in uploads, in a custom-made folder inside plugins ('plugins/json-api-custom-controllers/')?
    thanks!

    http://wordpress.org/plugins/json-api/

  2. Maxaud
    Member
    Posted 1 year ago #

    You can view the code I used here for adding a custom external controller:
    http://wordpress.org/support/topic/blank-pages-for-all-custom-api-calls-after-update?replies=3

    These aren't working in the most recent version but gives you an idea as to what actions and filters to hook in to for changing the controller location.

  3. Chris
    Member
    Posted 1 year ago #

    thanks!

  4. Maxaud
    Member
    Posted 1 year ago #

    No problem!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.