retesere20

Untitled

Jan 21st, 2020
76
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $this->google_analytics_ID="";
  2. $this->google_tag_manager_ID="";
  3. $this->top_ge_ID="";
  4.  
  5.  
  6. // - enable_write_logs
  7. // if ($this->is_development)
  8. // if (isset($_GET['memorylimit'])) { echo "ini_get('memory_limit'):" . ini_get('memory_limit') ."<br/>WP_MEMORY_LIMIT:".WP_MEMORY_LIMIT ; exit; }
  9. // if (isset($_GET['uptime'])) { system("uptime"); exit;}
  10. // if (isset($_GET['debug_loadtime'])){
  11. // if (isset($_GET['WP_DEBUG'])){ ---> wp_debug -->true
  12. // if (isset($_GET['debugmode'])){ ---> wp_debug in head/footer scripts
  13. // property_exists($this,'shortcodes' --> initializes shortcodes page.
  14. // property_exists($this,'customOptsPageUrl') ? $this->customOptsPageUrl : $this->slug;
  15. // if(property_exists($this, 'plugin_reset_callback')) $this->plugin_reset_callback();
  16.  
  17. $url = property_exists($this, 'base_path') ? $this->base_path : $this->pluginURL; /
  18. if (property_exists($this,'enable_write_logs')
  19.  
  20. property_exists($this, '_my_site_options')
  21.  
  22. if (property_exists($this, 'auth_expiration_hours')) add_filter('auth_cookie_expiration', [$this,'my_auth_cookie_expiration'], 99, 3);
  23. if (property_exists($this, 'extend_shortcodes')) $this->extendShortcodes()
  24.  
  25. property_exists($this,'MENU_SEARCH_ITEMS_AMOUNT')
  26.  
  27.  
  28.  
  29. if ( property_exists($this, "hooks_examples") ) {
  30. foreach ($this->hooks_examples as $key=>$block){
  31. echo '<div class="hook_example_block '.$key.'">';
  32. if ($block['type']=='filter'){
  33. echo '<div class="description">'. __($block['description']) .':</div>';
  34. echo '<code>add_filter("'.$key.'", "yourFunc", 10, '. count($block['parameters'] ) .' ); function yourFunc($'. implode(', $', $block['parameters'] ).') { ... return $'.$block['parameters'][0].';} </code>';
  35. }
  36. echo '</div>';
  37. }
  38. }
RAW Paste Data