View pdb-email_on_approval.php
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: Participants Database Send Welcome On Approval | |
Description: Sends the welcome email when a record is approved. | |
*/ | |
/* | |
* check the new record data before the record is updated | |
*/ | |
add_filter( 'pdb-before_submit_update', 'pdb_send_record_update_notification' ); |
View custom_validation_error_message.php
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 | |
/** | |
* adds a custom validation error message | |
* | |
* @param array $error_messages | |
* @return array | |
*/ | |
function xnau_add_url_validation_error_message( $error_messages ) | |
{ | |
// add our message with a placeholder for the field name |
View pdb-record-bootstrap-tabs-submit.php
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 endwhile; // field loop ?> | |
<div id="submit-button" class="controls"> | |
<?php pdb_field_group_tabs_submit_button( $this ) ?> | |
</div> | |
</fieldset> | |
<?php endwhile; // group loop ?> |
View pdb-record-bootstrap-tabs-head.php
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
<div class="wrap <?php echo $this->wrap_class ?>"> | |
<?php | |
if (!empty($this->participant_id)) : | |
// output any validation errors | |
$this->print_errors(); | |
?> | |
<?php | |
// print the form header |
View pdb-signup-city-select
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 | |
/* | |
* bootstrap template for signup form | |
* | |
* demonstrates a simple dependent selector | |
* | |
* the cities available for selection are constrained by the selected state | |
* | |
*/ | |
?> |
View pdb-backend-dynamic-values.php
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 | |
add_action( 'pdb-form_element_build_text-line', 'xnau_place_dynamic_value' ); | |
/** | |
* sets the value of a dynamic hidden field in the backend | |
* | |
* @param object $field | |
*/ | |
function xnau_place_dynamic_value( $field ) | |
{ | |
/* |
View pdb-record-backend-user.php
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 | |
add_action( 'pdb-after_submit_add', 'xnau_record_backend_user' ); | |
add_action( 'pdb-after_submit_update', 'xnau_record_backend_user' ); | |
/** | |
* record the user who created or edited a record in the backend | |
* | |
* @param array $record the record data | |
*/ | |
function xnau_record_backend_user( $record ) | |
{ |
View pdb-html-form-element-example.php
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 HTML Form Element | |
* Description: a general-purpose form element that simply displays HTML | |
* | |
*/ | |
class PDb_html_form_element_example { | |
/** |
View pdb-single-edit-link.php
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 | |
/* | |
* default template for displaying a single record | |
* | |
* this is the new "WordPress style" template | |
* | |
* each group with the "visible" attribute checked will display its fields in the order set | |
* in the manage database fields page. | |
* | |
* if there are specific fields you wish to exclude from display, you can include the "name" value of |
OlderNewer