View pdb-email-conditionals.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 Email Conditionals | |
* Description: shows how to add additional conditional checks to an email template | |
*/ | |
class PDb_Email_Template_Conditionals { | |
/** |
View pdb-override-email-limit.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 Override Email Limit | |
* Description: sets a new outgoing email limit | |
* Version: 1.0 | |
*/ | |
// overrides the session email limit with a new limit | |
add_action( 'pdb-mass_email_session_limit', function($limit){ | |
$limit = 500; // this is your new limit |
View pdb-custom-image-filename.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 Custom Image Filename | |
* Description: names an uploaded image file according to other values in the record | |
* Version: 1.0 | |
*/ | |
// attach the handler function to the filter | |
add_action( 'pdb-file_upload_filename', 'pdb_set_custom_filename', 10, 3 ); | |
View pdb-check-link-match.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 Check Link Field for Duplicate | |
* Description: make sure a new record does not match the link of an existing record | |
* Version: 1.1 | |
*/ | |
// this filter checks the submission | |
add_action( 'pdb-incoming_record_match_object', 'xnau_check_for_link_match' ); | |
View pdb-list-sort-columns.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 | |
/** | |
* @version 1.0 | |
* | |
* template for participants list shortcode output | |
* | |
* this demonstrates how to add a click-to-sort header to the list | |
* | |
*/ |
View pdb-autocomplete-cache.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 Autosuggest Term Cache Set | |
* Description: shows how to set the cache time for the Combo Multisearch autrosuggest term list | |
* | |
*/ | |
// set the cache time to 1 second, effectively bypassing it | |
add_filter( 'pdbcms-autosuggest_term_list_expiration', function( $cache_time ) { return 1; } ); |
View pdb-custom-format-tag.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 Custom Format Tag | |
* Description: shows how to add a custom formatting tag for use in a Participants Database calculated field | |
* Version: 1.0 | |
* Tutorial: https://xnau.com/using-custom-format-tags-for-calculation-fields/ | |
* | |
* this requires Participants Database version 2.4.8 or later! | |
*/ |
View pdb-record-approval-switch.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 | |
/* | |
* when the user opens their record for editing, we check on their approval status | |
* and then select the shortcode to use based on that. | |
*/ | |
switch ( $this->participant_values['approved'] ) { | |
case 'yes' : | |
echo do_shortcode( '[pdb_record]' ); | |
break; |
View pdb-custom-sum.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 Custom Log Sum | |
* Description: calculates a summary value for a participant log | |
*/ | |
class pdb_custom_log_sum { | |
/** |
View pdb-single-conditional-show.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 | |
/** | |
* @name pdb single template | |
* @version 2.2 | |
* | |
* demonstrates how to skip displaying a field based on a value in the record | |
* | |
* you will need to change 3 values: | |
* 'conditional_field' should be the name of the field you may want to skip showing | |
* 'check_field' should be the name of the record value you are checking |
NewerOlder