WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 121 | <a href="#" class="collapse-sidebar button-secondary" title="<?php esc_attr_e('Collapse Sidebar'); ?>"> |
| 122 | <span class="collapse-sidebar-arrow"></span> |
| 123 | <span class="collapse-sidebar-label"><?php _e('Collapse'); ?></span> |
| 124 | </a> |
| 125 | </div> |
| 126 | </form> |
| 127 | <div id="customize-preview" class="wp-full-overlay-main"></div> |
| 128 | <?php |
| 129 | |
| 130 | do_action( 'customize_controls_print_footer_scripts' ); |
| 131 | |
| 132 | // If the frontend and the admin are served from the same domain, load the |
| 133 | // preview over ssl if the customizer is being loaded over ssl. This avoids |
| 134 | // insecure content warnings. This is not attempted if the admin and frontend |
| 135 | // are on different domains to avoid the case where the frontend doesn't have |
| 136 | // ssl certs. Domain mapping plugins can allow other urls in these conditions |
| 137 | // using the customize_allowed_urls filter. |
| 138 | |
| 139 | $allowed_urls = array( home_url('/') ); |