Skip to content

Filter Hooks

Alana Martin edited this page Nov 5, 2018 · 2 revisions

Filter Hooks

responsive_news_templates

Description: Filters page templates that allow news posts to be listed.

Useful for: Whitelisting custom page templates to list news posts.

r_script_dependencies

Description: Filter the responsive-scripts script dependencies.

Useful for: Ensuring a script or JavaScript library is loaded before the Responsive Framework script.js file is loaded.

r_script_in_footer

Description: Filters whether the main framework JavaScript file should be loaded in the footer.

Useful for: Loading the framework JavaScript file in the header instead of the footer.

r_enqueue_modernizr

Description: Filters whether Modernizr should be enqueued by the framework.

Useful for: Loading a custom build of Modernizr.

r_modernizr_in_footer

Description: Filters whether the Modernizr should be loaded in the footer.

Useful for: Loading Modernizr in the header instead of footer.

r_narrow_blog_page

Description: Filters whether the blog page (post type archive) should be considered narrow.

Note: This is only run if a viewing narrow content (more information).

Useful for: Changing the blog page to wide.

r_narrow_single_templates

Description: Filters post types to consider narrow when is_singular() is true.

Note: This is only run if a viewing narrow content (more information).

Useful for: Changing a custom post type single view to narrow.

r_narrow_archive_templates

Description: Filters post types to consider narrow when is_post_type_archive() is true.

Note: This is only run if a viewing narrow content (more information).

Useful for: Changing a custom post type archive view to narrow.

r_narrow_page_templates

Description: Filters page templates to consider narrow when is_page_template() is true.

Note: This is only run if a viewing narrow content (more information).

Useful for: Changing a page template to narrow.

r_is_narrow_template

Description: Filters the final result of checking for a narrow template.

Note: This is only run if a viewing narrow content (more information).

Useful for: Flagging a post as narrow.

r_container_outer_class

Description: Filters the list of CSS classes for the outer content container.

Useful for: Adding A CSS class to the outer content container.

r_container_inner_class

Description: Filters the list of CSS classes for the inner content container.

Useful for: Adding A CSS class to the inner content container.

responsive_show_page_template_dropdown

Description: Filters the post types to show a page template dropdown on.

Useful for: Adding the page template dropdown to a custom post type.

responsive_show_page_template_filter

Description: Filter whether to display the page template dropdown filter in the admin.

Useful for: Hiding the page template dropdown filter.

buniverse_shortcode_src

Description: Filters the BUniverse embed URL.

Useful for: Specifying a custom URL for a BUniverse embed.

buniverse_shortcode

Description: Filters the BUniverse shortcut HTML.

Useful for: Changing the markup generated by a BUniverse shortcode.

responsive_calendar_topic

Description: Filters the current topic ID before retrieving events from BU Calendar.

Useful for: Changing the calendar topic events being displayed.

responsive_calendar_sidebar

Description: Filters the calendar sidebar arguments.

Useful for: Changing the calendar sidebar.

responsive_calendar_templates

Description: Filters calendar page templates.

Useful for: Add calendar support to a custom page template.

responsive_layout_options

Description: Filters the available layout options.

Useful for: Adding or removing layout options.

responsive_category_lists_exclusions

Description: Filters the categories to exclude from category lists.

Useful for: Excluding categories from category listings.

responsive_limit_sidebars_widgets

Description: Filters the maximum number of widgets in a sidebar.

Useful for: Limiting a sidebar to a certain number of widgets.

responsive_gallery_image_width

Description: Filters the default gallery thumbnail width.

Useful for: Changing thumbnail width for galleries.

responsive_gallery_image_height

Description: Filters the default gallery thumbnail height.

Useful for: Changing thumbnail height for galleries.

responsive_gallery_1col_image_width

Description: Filters the image width for 1 column galleries.

Useful for: Changing thumbnail width for 1 column galleries.

responsive_gallery_1col_image_height

Description: Filters the image height for 1 column galleries.

Useful for: Changing thumbnail height for 1 column galleries.

responsive_gallery_5col_up_image_width

Description: Filters the image width for galleries with 5 columns or more.

Useful for: Changing thumbnail width for galleries with 5 columns or more.

responsive_profile_width

Description: Filters the default BU Profile thumbnail width.

Useful for: Changing thumbnail width for BU Profiles.

responsive_profile_height

Description: Filters the default BU Profile thumbnail height.

Useful for: Changing thumbnail height for BU Profiles.

responsive_profile_image_crop

Description: Filters the default BU Profiles image crop properties.

Useful for: Changing the crop position for the default BU Profiles image.

responsive_profile_large_width

Description: Filters the default BU Profile large thumbnail width.

Useful for: Changing the width for large BU Profiles image.

responsive_profile_large_height

Description: Filters the default profile large thumbnail height.

Useful for: Changing the height for large BU Profiles image.

responsive_profile_image_large_crop

Description: Filters the default BU Profiles large image crop position.

Useful for: Changing the crop position for the large BU Profiles image.

responsive_get_posts_archive_link

Description: Filters the post archive link.

Useful for: Changing the post archive link.

responsive_extra_footer_classes

Description: Filters extra footer classes.

Useful for: Adding classes to the footer.

responsive_is_widget_empty PENDING RELEASE

Description: Filters the empty/not empty status of content for widget header information passed into the dynamic_sidebar_params hook.

Useful for: Correcting incorrect widget class counts when widgets are empty.

Welcome to Responsive!

Get started

Configuration

Build child themes

Sass

Javascript

PHP

Shortcodes

Templates

GitHub

Tasks

Contribute to the framework

Code Examples

BU Developer Resources

Clone this wiki locally