calderawpmetaplatecoreinit

Class metaplate.

Defined (1)

The class is defined in the following location(s).

/vendor/calderawp/metaplate-core/src/init.php  
  1. class init { 
  2. /** 
  3. * @var string 
  4. */ 
  5. protected $plugin_slug = 'metaplate'; 
  6. /** 
  7. * @var object 
  8. */ 
  9. protected static $instance = null; 
  10. /** 
  11. * @var array 
  12. */ 
  13. protected $plugin_screen_hook_suffix = array(); 
  14.  
  15. /** 
  16. * Return an instance of this class. 
  17. * @return object A single instance of this class. 
  18. */ 
  19. public static function get_instance() { 
  20.  
  21. // If the single instance hasn't been set, set it now. 
  22. if ( null == self::$instance ) { 
  23. self::$instance = new self; 
  24.  
  25. return self::$instance; 
  26.  
  27. /** 
  28. * Load the plugin text domain for translation. 
  29. */ 
  30. public function load_plugin_textdomain() { 
  31.  
  32. load_plugin_textdomain( $this->plugin_slug, FALSE, basename( MTPT_PATH ) . '/languages'); 
  33.  
  34.