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 | |
register_rest_route($this->namespace . '/v1', '/newsletter', array( | |
array( | |
'methods' => WP_REST_Server::READABLE, | |
'callback' => array($this, 'get_subscribers_callback'), | |
'args' => array( | |
'group_id' => array( | |
'required' => false, | |
) |
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 | |
register_rest_route($this->namespace . '/v1', '/newsletter', array( | |
array( | |
'methods' => WP_REST_Server::READABLE, | |
'callback' => array($this, 'get_subscribers_callback'), | |
'args' => array( | |
'group_id' => array( | |
'required' => false, | |
) |
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 | |
if (!isset($phone_number) && isset($email) && filter_var($email, FILTER_VALIDATE_EMAIL)) { | |
$ID = email_exists($email); | |
} | |
$current_user_id = get_current_user_id(); | |
if($current_user_id!==$ID){ | |
die ('user id not same!'); | |
} |
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 | |
if (!isset($phone_number) && isset($email) && filter_var($email, FILTER_VALIDATE_EMAIL)) { | |
$ID = email_exists($email); | |
} | |
$user = get_user_by('ID', $ID); | |
$password = sanitize_text_field($_GET['password']); | |
if ($user) { |
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 | |
/** | |
* Crop the avatar. | |
* | |
* @since 2.3.0 | |
* | |
* @see BP_Attachment::crop for the list of parameters | |
* | |
* @param array $args Array of arguments for the cropping. |
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 | |
/** | |
* Crop the avatar. | |
* | |
* @since 2.3.0 | |
* | |
* @see BP_Attachment::crop for the list of parameters | |
* | |
* @param array $args Array of arguments for the cropping. |
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 | |
public function registration_form( $atts ) { | |
$atts = shortcode_atts( | |
[ | |
'role' => '', | |
], $atts | |
); | |
$userrole = $atts['role']; |
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 | |
public function registration_form( $atts ) { | |
$atts = shortcode_atts( | |
[ | |
'role' => '', | |
], $atts | |
); | |
$userrole = $atts['role']; |
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 | |
if( isset( $_POST[ 'action' ] ) && $_POST[ 'action' ] == 'scupdates' ) { | |
if( isset( $_POST[ 'wp_cache_location' ] ) && $_POST[ 'wp_cache_location' ] != '' ) { | |
$dir = realpath( trailingslashit( dirname( $_POST[ 'wp_cache_location' ] ) ) ); | |
if ( $dir === realpath( '.' ) || false === $dir ) { | |
$dir = WP_CONTENT_DIR . '/cache/'; | |
} else { | |
$dir = trailingslashit( $dir ) . trailingslashit(wpsc_deep_replace( array( '..', '\\' ), basename( $_POST[ 'wp_cache_location' ] ) ) ); | |
} |
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 | |
if( isset( $_POST[ 'action' ] ) && $_POST[ 'action' ] == 'scupdates' ) { | |
if( isset( $_POST[ 'wp_cache_location' ] ) && $_POST[ 'wp_cache_location' ] != '' ) { | |
$dir = realpath( trailingslashit( dirname( $_POST[ 'wp_cache_location' ] ) ) ); | |
if ( $dir == false ) { | |
$dir = WP_CONTENT_DIR . '/cache/'; | |
} else { | |
$dir = trailingslashit( $dir ) . trailingslashit(wpsc_deep_replace( array( '..', '\\' ), basename( $_POST[ 'wp_cache_location' ] ) ) ); | |
} |