/** * This hooks into 'customize_register' (available as of WP 3.4) and allows * you to add new sections and controls to the Theme Customize screen. * * Note: To enable instant preview, we have to actually write a bit of custom * javascript. See live_preview() for more. * * @see add_action('customize_register',$func) * @param \WP_Customize_Manager $wp_customizer * @link http://ottopress.com/2012/how-to-leverage-the-theme-customizer-in-your-own-themes/ * @since WP_Basic_Bootstrap 1.0 */ public static function register($wp_customizer) { $_this = self::getInstance($wp_customizer); basicbootstrap_load_config('customizer'); global $basicbootstrap_customizer_config; $_this->processData($basicbootstrap_customizer_config, true); /*/ // HARD DEBUG OF ALL CONTROLS var_dump($_this->customizer->controls()); exit('yo'); //*/ }
/** * Register meta boxes * * Remember to change "your_prefix" to actual prefix in your project * * @param array $meta_boxes List of meta boxes * * @return array */ public static function metaBoxesInit($meta_boxes) { basicbootstrap_load_config('meta-boxes'); global $basicbootstrap_meta_boxes; return array_merge($meta_boxes, $basicbootstrap_meta_boxes); }