Skip to content

Instantly share code, notes, and snippets.


Roland Barker xnau

View GitHub Profile
xnau / pdb_custom_form_elment_example.php
Last active Feb 10, 2022
example of creating a Participants Database Custom Form Element
View pdb_custom_form_elment_example.php
* Plugin Name: PDB Array Form Element
* Description: a demonstration of the basic technique for creating a custom form element in Participants Database
add_filter( 'pdb-set_form_element_types', 'my_array_register_element' );
add_action( 'pdb-form_element_build_array','my_array_element_building_function' );
add_filter( 'pdb-before_display_form_element','my_array_element_value_display_function', 10, 2 );