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: xnau HTML Email Wrapper | |
* Description: Adds a structural HTML wrapper to outgoing WordPress emails. | |
*/ | |
class xnau_email_html_wrapper { | |
/** | |
* |
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 | |
* | |
* the uses a recaptcha field in the login form if available | |
* | |
* @global PDb_reCAPTCHA $PDb_reCAPTCHA | |
*/ | |
global $PDb_reCAPTCHA; | |
$recaptcha_fieldname = 'captcha'; // change this to match your captcha field name |
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 Video Form Element | |
* Description: Demonstrates how to create a Participants Database form element that displays a video | |
* Version: 3.0 | |
* Text Domain: pdb-video-form-element | |
* Domain Path: /languages | |
* | |
*/ |
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 | |
/* | |
template for participants list shortcode output | |
this template demonstrates a "table-less" responsive layout for the list of records | |
with a dropdown selector search interface | |
*/ | |
/** |
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 | |
/** | |
* shows a single record, placing a category link on the category field value | |
* | |
*/ | |
if ( $this->participant_id > 0 ) : | |
/* | |
* this is the list of category fields | |
*/ |
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 | |
// set the first_name field to read only | |
add_filter( 'pdb-before_field_added_to_iterator', function ($field) { | |
/** @var PDb_Field_Item $field */ | |
if ( $field->name() === 'first_name' ) { | |
$field->make_readonly(); | |
} | |
}); |
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 Multiple Field Match Check | |
* Description: checks a new Participants Database submission against the database for a matching record using multiple fields | |
* Version: 2.1 | |
* | |
* requires PDB version 1.9.4.2 or later | |
*/ | |
add_action( 'pdb-incoming_record_match_object', 'xnau_check_for_match' ); | |
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 WP User Shortcodes | |
* Description: defines several shortcodes for use with Participants Database and WordPress Users | |
*/ | |
class PDb_User_List_Shortcodes { | |
/** | |
* @var string name of the user ID field |
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
add_filter( 'pdb-rich_text_filter_mode', 'suspend_rich_text_for_sms', 10, 2 ); | |
// changes the rich text filtering mode according to content | |
function suspend_rich_text_for_sms( $format_setting, $content ) { | |
// the setting is only altered if the message is an sms message | |
if ( content_is_sms( $content ) ) { | |
$format_setting = 'none'; | |
} |
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 Cron | |
* Plugin URI: https://xnau.com/?p=7354 | |
* Description: Provides a basic framework for setting up an automated Participants Database email send | |
* Version: 1.0 | |
* Author: xnau webdesign | |
* Author URI: https://xnau.com | |
* License: GPL2 |