Viewing 3 reply threads
  • Author
    Posts
    • #5240
      oakwood
      Member

      Hey, glad to see this project is still alive and active!

      Is there any sort of after_form_submission hook or a better way to check conditionals and fire submission functions than to use this – https://piklist.com/user-guide/docs/piklist_pre_update_option_setting/

      Thanks!

    • #5252
      Steve
      Keymaster

      @oakwood– Piklist is VERY alive and VERY active!

      Take a look at the latest beta, v0.9.9.x. There are lots of new hooks and filters.

    • #5258
      oakwood
      Member

      Awesome, thanks!

      If I was wanting to validate a MailChimp api key after I save my settings page, should I hook into do_action('piklist_save_field', $scope, $fields); ? Is there a default way I can have my action fire only when this field/page is saved?

    • #5265
      Steve
      Keymaster

      @oakwood– You can narrow it down by using piklist_save_field-{$scope}. The $scope would be your setting.

      So, if your registered setting was ‘my_setting’, you would hook into piklist_save_field-my_setting.

Viewing 3 reply threads
  • You must be logged in to reply to this topic.