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 | |
class WP_Members_WooCommerce_Integration { | |
public $add_my_account_fields; | |
public $add_checkout_fields; | |
public $add_update_fields; | |
public $product_restrict; | |
public function __construct( $wpmem ) { |
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 // do not include this line. | |
/** | |
* Adds a custom shortcode to display membership restricted | |
* posts that a user has access to. | |
* | |
* shortcode: [show_my_posts] | |
*/ | |
add_shortcode( 'show_my_posts', 'my_show_my_posts' ); | |
function my_show_my_posts( $atts, $content, $tag ) { |
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 | |
/** | |
* An object class for WP-Members Password Reset. | |
* | |
* @since 3.3.5 | |
* @since 3.3.8 Rebuild processing to utilize WP native functions and user_activation_key. | |
*/ | |
class WP_Members_Pwd_Reset { | |
/** |
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 | |
/** | |
* The WP_Members Admin User Search Class. | |
* | |
* An object class to improve the backend user search. Allows | |
* searching by selected meta keys as defined in the plugin | |
* settings. Hooks into pre_user_query. | |
* | |
* Modified from Better User Search: | |
* https://wordpress.org/plugins/better-user-search/ |
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 | |
/** | |
* WP-Members API Functions | |
* | |
* This file is part of the WP-Members plugin by Chad Butler | |
* You can find out more about this plugin at https://rocketgeek.com | |
* Copyright (c) 2006-2022 Chad Butler | |
* WP-Members(tm) is a trademark of butlerblog.com | |
* | |
* @package WP-Members |
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 | |
/** | |
* An object class for WP-Members Password Reset. | |
* | |
* @since 3.3.5 | |
* @since 3.3.8 Rebuild processing to utilize WP native functions and user_activation_key. | |
*/ | |
class WP_Members_Pwd_Reset { | |
/** |
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
:: This is for spinning up installs for dev work, so don't consider this for | |
:: production applications. It creates everything off a single entry variable | |
:: so that you don't have to mess with unnecessary details. The site name and | |
:: username are the same (a single input), as are the database and db user. | |
:: The passwords for the initial WP user and the db user are generic "pass". | |
:: PHP, WP-CLI, and MYSQL all need to be path environment variables. | |
:: If you get errors that indicate something is not recognized as an internal | |
:: or external command, make sure you have these in your PATH. | |
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
# No dirs: | |
rm -- !(file.txt) | |
# If dirs: | |
rm -rf -- !(file.txt) | |
# If extglob is not enabled: | |
shopt -s extglob |
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 | |
/** | |
* WP-Members Admin API Functions | |
* | |
* This file is part of the WP-Members plugin by Chad Butler | |
* You can find out more about this plugin at https://rocketgeek.com | |
* Copyright (c) 2006-2022 Chad Butler | |
* WP-Members(tm) is a trademark of butlerblog.com | |
* | |
* @package WP-Members |
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 | |
/** | |
* A utility script to load WordPress to run | |
* php scripts directly from the command line. | |
*/ | |
if ( php_sapi_name() !== 'cli' ) { | |
die( "This script is meant to be run from the command line" ); | |
} |