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 | |
| function brrad_geocode($street_address,$city,$state){ | |
| $street_address = str_replace(" ", "+", $street_address); //google doesn't like spaces in urls, but who does? | |
| $city = str_replace(" ", "+", $city); | |
| $state = str_replace(" ", "+", $state); | |
| $url = "http://maps.googleapis.com/maps/api/geocode/json?address=$street_address,+$city,+$state&sensor=false"; | |
| $google_api_response = wp_remote_get( $url ); | |
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: Memberpress Customizations | |
| Plugin URI: http://www.qpractice.com/ | |
| Description: Customizations for Memberpress | |
| Author: Lisa League | |
| Version: 1.0 | |
| Author URI: http://www.qpractice.com/ | |
| */ | |
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 | |
| $user_id = get_current_user_id(); | |
| if ($user_id == 0) { | |
| // echo 'You are logged in as user '.$user_id; // DEBUGGING | |
| echo " "; | |
| } else { | |
| // echo 'You are not logged in.'; // DEBUGGING |
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 | |
| // When you create a new WordPress Multisite blog from the admin area, you have | |
| // to enter three things: | |
| // 1. Site address (subdomain or folder name) | |
| // 2. Site title | |
| // 3. Admin email | |
| // For my purposes I wanted the site address to be automatically generated from |