Title: nwp_developer's Replies | WordPress.org

---

# nwp_developer

  [  ](https://wordpress.org/support/users/nwp_developer/)

 *   [Profile](https://wordpress.org/support/users/nwp_developer/)
 *   [Topics Started](https://wordpress.org/support/users/nwp_developer/topics/)
 *   [Replies Created](https://wordpress.org/support/users/nwp_developer/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/nwp_developer/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/nwp_developer/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/nwp_developer/engagements/)
 *   [Favorites](https://wordpress.org/support/users/nwp_developer/favorites/)

 Search replies:

## Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)

 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Theme Customizer Menu Item Order](https://wordpress.org/support/topic/theme-customizer-menu-item-order/)
 *  Thread Starter [nwp_developer](https://wordpress.org/support/users/nwp_developer/)
 * (@nwp_developer)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/theme-customizer-menu-item-order/#post-5703550)
 * Solved. There’s a priority setting for the control array.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Wp_customize_image_control Use Add Media](https://wordpress.org/support/topic/wp_customize_image_control-use-add-media/)
 *  Thread Starter [nwp_developer](https://wordpress.org/support/users/nwp_developer/)
 * (@nwp_developer)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/wp_customize_image_control-use-add-media/#post-5703549)
 * Thanks bcworkz
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Page Builder by WooRockets.com] Pagebuilder Element Widget](https://wordpress.org/support/topic/pagebuilder-element-widget/)
 *  Thread Starter [nwp_developer](https://wordpress.org/support/users/nwp_developer/)
 * (@nwp_developer)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/pagebuilder-element-widget/#post-5706277)
 * Yes
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Dynamic Class Sidebar](https://wordpress.org/support/topic/dynamic-class-sidebar/)
 *  Thread Starter [nwp_developer](https://wordpress.org/support/users/nwp_developer/)
 * (@nwp_developer)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/dynamic-class-sidebar/#post-5702147)
 * On a related note how do you make $wp_customize->add_control show on refresh 
   of another control selection? I can create an if statement that tests if the 
   value is select in the top control to show the bottom control. However, it only
   updates when physically refreshing the page and not when the theme customizer
   refreshes the changes for preview.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Page Builder by WooRockets.com] Adding shortcodes](https://wordpress.org/support/topic/adding-shortcodes-2/)
 *  Thread Starter [nwp_developer](https://wordpress.org/support/users/nwp_developer/)
 * (@nwp_developer)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/adding-shortcodes-2/#post-5689782)
 * Hi Adam.
    Thanks for the update. I think the reason why the adding new shortcodes
   only works intermittently is because the shortcodes are not being updated regularly
   when wr_pagebuilder is launched.
 * Is there a way to reload the shortcodes without having to uninstall or deactivate
   the plugin? It doesn’t look like the option _wp_pb_reload_shortcodes is working
   when set to true.
 * If not can you point me in the right direction to modify this?
 * Cheers
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Pass $name to get_header()](https://wordpress.org/support/topic/pass-name-to-get_header/)
 *  Thread Starter [nwp_developer](https://wordpress.org/support/users/nwp_developer/)
 * (@nwp_developer)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/pass-name-to-get_header/#post-5690393)
 * Great! So you can create a Theme customization for the header using $wp_customize
   in functions.php, instantiate the WP_Customize_Control with type select to select
   your setting id for the header and pass the setting id of the header to your 
   filter.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Pass $name to get_header()](https://wordpress.org/support/topic/pass-name-to-get_header/)
 *  Thread Starter [nwp_developer](https://wordpress.org/support/users/nwp_developer/)
 * (@nwp_developer)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/pass-name-to-get_header/#post-5690391)
 * Thanks!
    To clarify for anyone else: apply_filters allows you to create your 
   own custom filters.
 * In apply_filters(‘my_header_filter’, ”):
    my_header_filter is your custom filter
   and the ” is the value you’re filtering.
 * So you can use <?php get_header( apply_filters(‘my_header_filter’, ”) ); ?> to
   dynamically change your header in your index or frontpage file.
 * Then in functions.php you can change the value of the header
    function change_header(
   $header){ $header=’second’; return $header; }
 * add_filter(‘my_header_filter’, ‘change_header’);
 * To filter get_header() to load get_header(‘second’) to load header-second.php.
 * Now the question is how to get this into $wp_customize.

Viewing 7 replies - 1 through 7 (of 7 total)