| @@ -27,9 +27,9 @@ | ||
| 27 | 27 | */ |
| 28 | 28 | class Visualizer_Plugin { |
| 29 | 29 | |
| 30 | 30 | const NAME = 'visualizer'; |
| 31 | - const VERSION = '4.0.4'; | |
| 31 | + const VERSION = '3.6.1'; | |
| 32 | 32 | |
| 33 | 33 | // custom post types |
| 34 | 34 | const CPT_VISUALIZER = 'visualizer'; |
| 35 | 35 | |
| @@ -56,10 +56,8 @@ | ||
| 56 | 56 | const ACTION_DELETE_CHART = 'visualizer-delete-chart'; |
| 57 | 57 | const ACTION_UPLOAD_DATA = 'visualizer-upload-data'; |
| 58 | 58 | const ACTION_EXPORT_DATA = 'visualizer-export-data'; |
| 59 | 59 | |
| 60 | - const STORE_URL = 'https://store.themeisle.com/'; | |
| 61 | - | |
| 62 | 60 | /** |
| 63 | 61 | *Action used for fetching specific users/roles for permissions. |
| 64 | 62 | */ |
| 65 | 63 | const ACTION_FETCH_PERMISSIONS_DATA = 'visualizer-fetch-permissions-data'; |
| @@ -90,10 +88,8 @@ | ||
| 90 | 88 | const FILTER_GET_CHART_SETTINGS = 'visualizer-get-chart-settings'; |
| 91 | 89 | const FILTER_UNDO_REVISIONS = 'visualizer-undo-revisions'; |
| 92 | 90 | const FILTER_HANDLE_REVISIONS = 'visualizer-handle-revisions'; |
| 93 | 91 | const FILTER_GET_CHART_DATA_AS = 'visualizer-get-chart-data-as'; |
| 94 | - const FILTER_HANDLE_CACHE_EXPIRATION_TIME = 'visualizer-handle-expiration-time'; | |
| 95 | - const FILTER_CHART_TITLE = 'the_title'; | |
| 96 | 92 | |
| 97 | 93 | const CF_DB_SCHEDULE = 'visualizer-db-schedule'; |
| 98 | 94 | const CF_DB_QUERY = 'visualizer-db-query'; |
| 99 | 95 | |
| @@ -99,15 +95,11 @@ | ||
| 99 | 95 | |
| 100 | 96 | const CF_CHART_URL = 'visualizer-chart-url'; |
| 101 | 97 | const CF_CHART_SCHEDULE = 'visualizer-chart-schedule'; |
| 102 | 98 | // Added by Ash/Upwork |
| 103 | - const PRO_TEASER_URL = 'https://themeisle.com/plugins/visualizer-charts-and-graphs/upgrade/'; | |
| 99 | + const PRO_TEASER_URL = 'https://themeisle.com/plugins/visualizer-charts-and-graphs/upgrade/#pricing'; | |
| 104 | 100 | const PRO_TEASER_TITLE = 'Check PRO version '; |
| 105 | 101 | |
| 106 | - const CF_CHART_CACHE = 'visualizer-chart-cache'; | |
| 107 | - const CF_JSON_WOOCOMMERCE_SOURCE = 'visualizer-woocommerce-source'; | |
| 108 | - const CF_IS_WOOCOMMERCE_SOURCE = 'visualizer-is-woocommerce-source'; | |
| 109 | - | |
| 110 | 102 | /** |
| 111 | 103 | * Name of the option for WordPress DB. |
| 112 | 104 | */ |
| 113 | 105 | const WP_DB_NAME = 'WordPress DB'; |
| @@ -221,12 +213,12 @@ | ||
| 221 | 213 | * @since 1.0.0 |
| 222 | 214 | * |
| 223 | 215 | * @access public |
| 224 | 216 | * |
| 225 | - * @param string $class_name The name of the module to use in the plugin. | |
| 217 | + * @param string $class The name of the module to use in the plugin. | |
| 226 | 218 | */ |
| 227 | - public function setModule( $class_name ) { | |
| 228 | - $this->_modules[ $class_name ] = new $class_name( $this ); | |
| 219 | + public function setModule( $class ) { | |
| 220 | + $this->_modules[ $class ] = new $class( $this ); | |
| 229 | 221 | } |
| 230 | 222 | |
| 231 | 223 | /** |
| 232 | 224 | * Private clone method. |
| @@ -240,11 +232,12 @@ | ||
| 240 | 232 | |
| 241 | 233 | /** |
| 242 | 234 | * For local testing, overrides the 'themeisle_log_event' hook and redirects to error.log. |
| 243 | 235 | */ |
| 244 | - final public function themeisle_log_event_debug( $name, $message, $type, $file, $line ) { | |
| 236 | + final function themeisle_log_event_debug( $name, $message, $type, $file, $line ) { | |
| 245 | 237 | if ( Visualizer_Plugin::NAME !== $name ) { |
| 246 | 238 | return; |
| 247 | 239 | } |
| 248 | 240 | error_log( sprintf( '%s (%s): %s in %s:%s', $name, $type, $message, $file, $line ) ); |
| 249 | 241 | } |
| 242 | + | |
| 250 | 243 | } |