Metaplate

Plugin class.

Defined (1)

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

/core-class.php  
  1. class Metaplate { 
  2.  
  3. /** 
  4. * Initialize the plugin by setting localization, filters, and administration functions. 
  5. */ 
  6. function __construct() { 
  7.  
  8. // Load plugin text domain 
  9. add_action( 'init', array( 
  10. calderawp\metaplate\core\init::get_instance(),  
  11. 'load_plugin_textdomain' 
  12. ); 
  13.  
  14.  
  15. //render output 
  16. $render = new calderawp\metaplate\core\render(); 
  17. // add filter. 
  18. add_filter( 'the_content', array( $render, 'render_metaplate' ), 9 ); 
  19. // shortcode 
  20. add_shortcode( 'caldera_metaplate', 'caldera_metaplate_shortcode' ); 
  21.  
  22. if ( is_admin() ) { 
  23. new calderawp\metaplate\admin\settings(); 
  24. new calderawp\metaplate\admin\page(); 
  25.  
  26.  
  27.