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
public function facetwp_show_proximity() { | |
$output = ''; | |
$distance = facetwp_get_distance(); | |
if ( false !== $distance ) { | |
$output .= esc_html( round( $distance, 2 ) ); | |
} | |
$output .= 'hello'; | |
return $output; | |
} |
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
/** | |
* Send an email to admin and membership approvers when a user has signed up for a membership level that requires approval. | |
* | |
*/ | |
public static function pmpro_after_change_membership_level( $level_id, $user_id ){ | |
//check if level requires approval, if not stop executing this function and don't send email. | |
if( !PMPro_Approvals::requiresApproval( $level_id ) ){ | |
return; | |
} |