Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $this->google_analytics_ID="";
- $this->google_tag_manager_ID="";
- $this->top_ge_ID="";
- // - enable_write_logs
- // if ($this->is_development)
- // if (isset($_GET['memorylimit'])) { echo "ini_get('memory_limit'):" . ini_get('memory_limit') ."<br/>WP_MEMORY_LIMIT:".WP_MEMORY_LIMIT ; exit; }
- // if (isset($_GET['uptime'])) { system("uptime"); exit;}
- // if (isset($_GET['debug_loadtime'])){
- // if (isset($_GET['WP_DEBUG'])){ ---> wp_debug -->true
- // if (isset($_GET['debugmode'])){ ---> wp_debug in head/footer scripts
- // property_exists($this,'shortcodes' --> initializes shortcodes page.
- // property_exists($this,'customOptsPageUrl') ? $this->customOptsPageUrl : $this->slug;
- // if(property_exists($this, 'plugin_reset_callback')) $this->plugin_reset_callback();
- $url = property_exists($this, 'base_path') ? $this->base_path : $this->pluginURL; /
- if (property_exists($this,'enable_write_logs')
- property_exists($this, '_my_site_options')
- if (property_exists($this, 'auth_expiration_hours')) add_filter('auth_cookie_expiration', [$this,'my_auth_cookie_expiration'], 99, 3);
- if (property_exists($this, 'extend_shortcodes')) $this->extendShortcodes()
- property_exists($this,'MENU_SEARCH_ITEMS_AMOUNT')
- if ( property_exists($this, "hooks_examples") ) {
- foreach ($this->hooks_examples as $key=>$block){
- echo '<div class="hook_example_block '.$key.'">';
- if ($block['type']=='filter'){
- echo '<div class="description">'. __($block['description']) .':</div>';
- echo '<code>add_filter("'.$key.'", "yourFunc", 10, '. count($block['parameters'] ) .' ); function yourFunc($'. implode(', $', $block['parameters'] ).') { ... return $'.$block['parameters'][0].';} </code>';
- }
- echo '</div>';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement