Shows how to enable showing heading fields in the Participants Database admin edit participant page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: PDB Show Heading Fields in Admin | |
* Description: enabled showing the heading type field on the admin edit participant page | |
*/ | |
add_filter( 'pdb-omit_backend_edit_form_element_type', 'xnau_enable_heading_field_display' ); | |
/** | |
* remove the heading field from the backend omit types array | |
* | |
* @param type $omit_types | |
* @return type | |
*/ | |
function xnau_enable_heading_field_display( $omit_types ) | |
{ | |
unset( $omit_types[ array_search( 'heading', $omit_types ) ] ); | |
return $omit_types; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment