19 articles Plugin API Page 3 / 4

eForm comes with a handful of Application Programming Interface (API). All of them are nothing but hooks and filters inherited from WordPress itself. If you are a developer and would like to extend the functionality, then this is where you can learn from.

APIs on form output

Hook: ipt_fsqm_hook_form_before Triggered right before the output of the actual form. This is triggered only if the form is submitable. Hook Uses Accepts one parameter, a reference to the IPT_FSQM_Form_Elements_Front object. [php] /** * Hooks into fsqm form output (before all elements) * And prints some custom HTML * * @param object $obj Reference to…

APIs on label and richtext output handling

Filter: ipt_uif_richtext This filter is used to modify the richtext contents of element descriptions. Filter Uses Accepts one argument, the HTML string (rich text). [php] /** * Modifies RichText Elements inside all eForm output * * @param string $text Original text/html * * @return string */ function modify_fsqm_richtext( $text ) { // Perform some action…

APIs on third party integrations

Hook:ipt_fsqm_hook_integration Triggered when a submission is saved for the first time by a user and all predefined integrations have been processed. Hook Uses Accepts one argument, a reference to the IPT_FSQM_Form_Elements_Data object. [php] /** * Add into the integration execution hook * To carry out our custom integration * * @param object $obj A reference…

APIs on file upload handling

Hook: ipt_fsqm_hook_save_fileupload Triggered when saved files are updated after a successful submision save. Hook Uses Accepts one argument. A reference to IPT_FSQM_Form_Elements_Data object. [php] /** * Hooks into filesave event during a submission * * @param object $obj Reference to IPT_FSQM_Form_Elements_Data object */ function hook_fsqm_filesave( $obj ) { global $wpdb, $ipt_fsqm_info; // Get the uploaded…

APIs on Form Submission Handling

Hook: ipt_fsqm_hook_save_insert Triggered when a new submission is stored in the eForm data table. Hook Uses The callback function is passed only one argument. A reference to the IPT_FSQM_Form_Elements_Data object that has called the hook. [php] /** * Hook into ipt_fsqm_hook_save_insert * * @param object $data Object reference to IPT_FSQM_Form_Elements_Data */ function fsqm_hook_save_insert( $data )…

  • Page 3 of 4
  • 1
  • 2
  • 3
  • 4