Salient Hooks and Filters Salient's templates fire WordPress actions and filters at fixed points, so a child theme can add, replace or remove output without editing template files. The tables list every hook, where it fires, its type, and the theme's own callbacks already attached to it.
General Template Hooks
Hook Description Type Hooked callbacks nectar_hook_after_body_openDirectly after the body open tag Action nectar_skip_to_content_linknectar_custom_js_after_bodynectar_hook_before_body_closeBefore body close tag Action nectar_hook_after_outer_wrap_openAfter outer wrap open (#ajax-content-wrap) Action nectar_fullscreen_blur_wrap_opennectar_hook_before_outer_wrap_closeBefore outer wrap close (#ajax-content-wrap) Action nectar_fullscreen_blur_wrap_closenectar_hook_before_header_navBefore the Salient header navigation bar Action nectar_material_skin_ocm_wrap_opennectar_page_trans_markupnectar_hook_404_content404 template content Action
Hook Description Type Hooked callbacks nectar_hook_before_logoBefore the header navigation logo Action nectar_hook_mobile_header_menu_itemsItems to display in the mobile navigation header bar Action nectar_mobile_header_persistent_itemsnectar_hook_before_menu_itemsBefore the main navigation menu items Action nectar_hook_before_pull_left_itemsBefore the "Pull left" navigation menu items Action nectar_hook_pull_right_menu_itemsPull right menu items Action nectar_before_header_button_list_itemsBefore the button based navigation menu items Action nectar_hook_secondary_header_menu_itemsSecondary header layout menu items Action
Content Hooks
Hook Description Type Hooked callbacks nectar_hook_before_contentBefore page/post content begins Action nectar_yoast_breadcrumbsnectar_buddypress_titlenectar_fullpage_markup_opennectar_hook_after_contentAfter page/post content ends Action nectar_fullpage_markup_closenectar_after_archive_post_item_contentAfter blog post item content in blog archives Action nectar_post_grid_item_bg_markup_afterAfter post loop builder item image markup Action nectar_post_grid_item_content_markup_beforeBefore post loop builder item content Action nectar_post_grid_excerptThe post loop builder item excerpt Filter
Hook Description Type nectar_hook_before_footer_widget_areaBefore footer widgets Action nectar_hook_after_footer_widget_areaAfter footer widgets Action nectar_hook_after_wp_footerBefore closing body tag Action
Hook Description Type nectar_hook_ocm_before_menuOff canvas menu before menu items Action nectar_hook_ocm_after_menuOff canvas menu after menu items Action nectar_hook_ocm_bottom_metaOff canvas menu in bottom meta section Action nectar_hook_ocm_before_secondary_itemsOff canvas menu before secondary nav items Action
Filters
Every filter below was read out of the theme or Salient Core source rather than
compiled from memory, and each one names the value it receives.
Queries
Hook Description Type nectar_blog_queryThe blog loop's query arguments, before the loop runs Filter nectar_post_grid_queryThe Post Grid element's query arguments Filter nectar_post_grid_post_typesWhich post types the Post Grid element offers Filter nectar_quick_search_queryThe header quick search's query arguments Filter
Header and logo
Hook Description Type nectar_activate_transparent_headerOverrides the theme's decision to use the transparent header on a page Filter nectar_transparent_header_coloringForces the transparent header's light or dark coloring Filter nectar_logo_urlWhere the logo links, home_url() by default Filter nectar_logo_textThe text logo's string, the site name by default Filter nectar_header_outer_classesClasses on the outer header element Filter
Hook Description Type nectar_page_header_subtitleThe page header's subtitle text Filter nectar_auto_page_header_bypassPost types that skip the automatic page header, an array Filter nectar_page_header_height_valThe page header's height Filter nectar_page_header_bg_valThe page header's background image Filter
Metaboxes on other post types
Each takes the array of post types that gets the metabox, which is how the
Salient options are added to a custom post type. See
Add Salient Metaboxes to a Custom Post Type .
Hook Description Type nectar_metabox_post_types_page_headerPost types offered the page header metabox Filter nectar_metabox_post_types_post_headerPost types offered the post header metabox Filter nectar_metabox_post_types_fullscreen_rowsPost types offered full screen rows Filter nectar_metabox_post_types_navigation_transparencyPost types offered the navigation transparency options Filter
Hook Description Type nectar_delay_js_script_listThe script handles the Delay JavaScript Execution option defers Filter nectar_disable_deferred_cssTurns off deferred CSS loading when true Filter nectar_disable_third_party_lazy_loadingWhether the theme leaves third party lazy loading alone Filter
Global sections
Hook Description Type nectar_available_special_locationsThe special locations a global section can be assigned to Filter nectar_global_sections_enabledTurns the global sections feature off when false Filter salient_global_section_allow_displayWhether a given global section renders on the current request Filter
Default image sizes
Each takes the WordPress image size an element requests, so a site can serve
something smaller than full.
Hook Description Type nectar_default_column_image_sizeColumn background images Filter nectar_default_row_background_image_sizeRow background images Filter nectar_default_fancy_box_image_sizeFancy Box images Filter nectar_default_flip_box_image_sizeFlip Box images Filter
Elsewhere
Hook Description Type salient_default_copyright_textThe footer's default copyright line Filter nectar_font_awesome_6_enabledWhether Font Awesome 6 is loaded instead of 5 Filter nectar_multisite_options_allow_admin_edit_codeBoolean Filter