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 ); |
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 Running Total | |
| * Description: keeps a running total for each record | |
| * Version: 2.1 | |
| */ | |
| /* | |
| * this plugin keeps a cumulative total for each record by subtracting or adding |
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 Multi-Relational Literal Relations Field | |
| * Description: Maintains a field in the database with a list of the record's relations | |
| * Version: 0.1 | |
| */ | |
| /* | |
| * this is designed to maintain a field in the record that can be used for simple filtering |
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 Multi-Relational Utility Class | |
| * Description: Provides a utility class for showing a record's relations | |
| * Version: 0.1 | |
| */ | |
| class pdbmrdb_record { | |
NewerOlder