This file contains hidden or 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 Disable Retrieve Form Brute Force Protect | |
| * Description: disables the brute force protection in the retrieve private link form | |
| */ | |
| add_filter( 'pdb-retrieve_link_brute_force_protect', function () { return false; } ); | |
This file contains hidden or 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 Log List Prefilter | |
| * Description: filters which log entries are presented in a log list | |
| * | |
| * @see https://gist.github.com/xnau/856b362ccdd7545cdfd02dbbb83b273e | |
| */ | |
| if ( !class_exists( 'xnau_filtered_log_template' ) ): | |
| class xnau_filtered_log_template |
This file contains hidden or 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 | |
| /** | |
| * custom template for the [pdb_record] shortcode that demonstrates showing a | |
| * warning to a user if they have unsaved changes to the record | |
| */ | |
| ?> | |
| <script> | |
| jQuery(function($){ | |
| // tracks the form for unsaved changes | |
| var unsaved = false; |
This file contains hidden or 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: Unapprove Record on Frontend Edit | |
| * Description: When a record is edited by a frontend user, switch the approval to "no" | |
| * | |
| */ | |
| /* | |
| * set it up so that our function will be triggered when a record is updated |
This file contains hidden or 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 Login Check Multiple Usernames | |
| * Description: check two fields for a username match | |
| * Version: 0.1 | |
| */ | |
| add_filter( 'pdb-login_username_query', 'xnau_modify_login_query' ); | |
| /** |
This file contains hidden or 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 | |
| /** | |
| * special purpose template that only shows the named fields as bare elements | |
| * | |
| */ | |
| if ( $this->record_found() ) : | |
| while ( $this->have_groups() ) : $this->the_group(); |
This file contains hidden or 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 | |
| /** | |
| * show grandchildren template | |
| * | |
| * this demonstrates a way to show the grandchildren of a parent type | |
| * | |
| */ | |
| // this is the name of the parent type this template is for | |
| $parent_type = 'teacher'; |
This file contains hidden or 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 Prevent Editor Delete Records | |
| * Description: prevent users with an editor role from deleting records | |
| * Version: 1.0 | |
| * | |
| * @see https://xnau.com/user-access-control/ | |
| */ | |
| add_filter( 'pdb-access_capability', 'xnau_editor_delete_cap', 10, 2 ); |
This file contains hidden or 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 MailChimp Custom Merge Tags | |
| * Description: adds a custom merge tag to the MailChimp registration | |
| * Author: Roland Barker, xnau webdesign | |
| * Version: 1.0 | |
| * Author URI: https://xnau.com | |
| * License: GPL3 | |
| */ |
This file contains hidden or 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 Email Tag | |
| * Version: 0.1 | |
| */ | |
| // this is a proof-of-concept example | |
| add_filter( 'pdb-template_email_tag_map', 'xnau_add_custom_email_tag', 10, 2 ); |
NewerOlder