/**
  * Register required plugins
  *
  * @uses \TGM_Plugin_Activation
  */
 public static function init()
 {
     // load custom libraries
     basicbootstrap_load_class('wp-template-hierarchy-everywhere');
     basicbootstrap_load_library('template-enhancer');
     basicbootstrap_load_library('template-library');
     // required plugins
     basicbootstrap_load_config('defaults');
     basicbootstrap_load_class('TGM_Plugin_Activation');
     add_action('tgmpa_register', array('WP_Basic_Bootstrap_Setup', 'setupRequirements'));
 }
Ejemplo n.º 2
0
 */
basicbootstrap_load_class('WP_Basic_Bootstrap_Customizer');
add_action('customize_register', array('WP_Basic_Bootstrap_Customizer', 'register'));
add_action('customize_preview_init', array('WP_Basic_Bootstrap_Customizer', 'livePreview'));
add_action('wp_head', array('WP_Basic_Bootstrap_Customizer', 'headerOutput'));
/**
 * New 403 & 401 error pages micro-plugin
 *
 * The `wp_title` filter is documented in `wp-includes/general-template.php`.
 * The `body_class` filter is documented in `wp-includes/post-template.php`.
 *
 * @uses basicbootstrap_error_pages()
 * @uses basicbootstrap_error_title()
 * @uses basicbootstrap_error_class()
 */
basicbootstrap_load_library('error-pages');
add_action('wp', 'basicbootstrap_error_pages');
add_filter('wp_title', 'basicbootstrap_error_title', 100, 2);
add_filter('body_class', 'basicbootstrap_error_class');
/**
 * Manage global redirections
 *
 * @uses basicbootstrap_template_redirect()
 */
add_action('template_redirect', 'basicbootstrap_template_redirect', 1);
/**
 * Define the excerpts length
 *
 * The `excerpt_length` filter is documented in `wp-includes/formatting.php`.
 *
 * @uses basicbootstrap_excerpt_length()