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 | |
| /** | |
| * Disable any automatic phone number formatting in Paid Memberships Pro. | |
| * | |
| * This ensures phone numbers are displayed exactly as entered by the member. | |
| * | |
| * Add this code to your PMPro Customizations Plugin | |
| * - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
| */ |
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 | |
| /** | |
| * Adjust expiration date based on a defined cutoff date for Paid Memberships Pro. | |
| * | |
| * If a user signs up or renews on or after the defined cutoff date, | |
| * their membership expiration date is extended by a specified period | |
| * (e.g., December 31 of the next year). | |
| * If they sign up or renew before the cutoff, the expiration date | |
| * is set to a different period (e.g., December 31 of the current year). | |
| * |
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: Persistent Login for All Users | |
| * Description: Extends the user login period to one year for all users, regardless of the "Remember Me" option. | |
| * Version: 1.0 | |
| * Author: Your Name | |
| * | |
| * @link https://developer.wordpress.org/reference/hooks/auth_cookie_expiration/ | |
| * | |
| * Usage: This plugin extends the login period for all users to one year without requiring them to select the "Remember Me" option. |
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 | |
| /** | |
| * Sequential Membership Numbers for designed membership level e.g Membership Level 2 Only | |
| * | |
| * This forked version generates sequential membership numbers only for users registered at Membership Level 2. | |
| * Member numbers are automatically increased from the starting value set for $starting_member_number | |
| * after each new Level 2 member registration. | |
| * | |
| * Displayed on user account, edit profile, members list pages, membership card, and included in members list CSV export. | |
| * |
NewerOlder