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 | |
| // Version 1.0 | |
| // Author Noam Eppel noam@cleanforest.co | |
| // Related: https://pressjitsu.com/blog/optimizing-wp-options-for-speed/ | |
| // | |
| // Requires jquery.canvasjs.min.js from http://canvasjs.com/download-html5-charting-graphing-library/ | |
| // Hello WP. Update the path to the wp-load.php file. | |
| require_once '../wp-load.php'; |
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 | |
| /* | |
| * [csnnaa_remove_additional_roles] | |
| * Remove additional role when transaction is created/edited/expires | |
| */ | |
| function csnnaa_remove_additional_roles($roles, $wp_user) | |
| { | |
| $mepr_user = new MeprUser($wp_user->ID); | |
| $active = $mepr_user->active_product_subscriptions('ids'); |
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 getMediumData() | |
| { | |
| $handle = curl_init(); | |
| $url = "https://api.rss2json.com/v1/api.json?rss_url=https%3A%2F%2Fmedium.com%2Ffeed%2Fmorpheus-network"; | |
| // Set the url | |
| curl_setopt($handle, CURLOPT_URL, $url); | |
| // Set the result output to be a string. |
OlderNewer