Skip to main content
Signocore
// signocore slate docs

Hooks

Every action and filter in Signocore Slate with its parameters, generated from the theme source.

This reference is generated from the docblocks in the Signocore Slate source. It lists the 155 actions and 312 filters the theme fires, and every hook name starts with signocore_slate_. A few hooks build their name at runtime and are not listed here.

For recipes and template overrides in a child theme, see Customizing with code.

No hooks match "".

General

Filters whether the basic Internet Explorer 11 support styles and scripts are loaded.

Parameter Type Description
$enabled bool Whether to load IE11 support regardless of the theme option. Default false.

Returns bool The filtered value.

signocore_slate_archive

action since 1.0.0

Fires to output the main archive content.

Theme callbacks on this hook: Signocore\Slate\archive_markup (priority 10).

Filters the taxonomies whose term edit screens get the archive image fields.

Renamed from slate_archive_image_taxonomies in 2.0.0.

Parameter Type Description
$taxonomies string[] Taxonomy names. Default all registered taxonomies.

Returns string[] The filtered value.

Filters the schema.org item type used for articles.

Parameter Type Description
$type string The item type. Default CreativeWork.

Returns string The filtered value.

signocore_slate_before_header

action since 1.0.0

Fires inside the site wrapper, before the site header.

Theme callbacks on this hook: Signocore\Slate\Accessibility\Component::skip_to_content_link (priority 2).

Filters the block categories shown in the block visibility manager.

Lets themes and sites add custom block categories to the visibility manager.

Renamed from slate/block_visibility_categories in 2.0.0.

Parameter Type Description
$categories array<string, array{label: string, blocks: array<string, string>}> Categories keyed by slug, each with a label and its blocks as block name => label.

Returns array<string, array{label: string, blocks: array<string, string>}> The filtered value.

Filters the blocks listed in the block visibility manager.

Lets themes and sites add custom blocks to the visibility manager.

Renamed from slate/block_visibility_list in 2.0.0.

Parameter Type Description
$blocks array<string, string> Blocks as block name => label.

Returns array<string, string> The filtered value.

Filters the post types that get the classic editor Post Settings meta box.

Parameter Type Description
$extras_post_types string[] Post type names.

Returns string[] The filtered value.

signocore_slate_comment_args

filter since 1.0.0

Filters the comment form arguments.

Parameter Type Description
$args array Comment form arguments, including the theme comment field markup.

Returns array The filtered value.

signocore_slate_comment_fields

filter since 1.0.0

Filters the markup of the comment form name, email and website fields.

Parameter Type Description
$fields array Field markup keyed by field name.

Returns array The filtered value.

signocore_slate_comments

action since 1.0.0

Fires inside the comments area to output the comments list and the comment form.

Theme callbacks on this hook: Signocore\Slate\check_comments_form_order (priority 1), Signocore\Slate\comments_list (priority 10), Signocore\Slate\comments_form - 15 (5 when the form is set to show before the list).

Filters the arguments of the theme custom logo support.

Parameter Type Description
$args array Custom logo arguments: height, width, flex-width and flex-height.

Returns array The filtered value.

Filters the rendered widget markup of the sidebar.

Parameter Type Description
$content string|false The sidebar widget markup, or false if output buffering failed.

Returns string|false The filtered value.

action since 1.0.0

Fires to output the site footer.

Elementor Pro, Beaver Themer and Header Footer Elementor replace the default footer markup on this hook.

Theme callbacks on this hook: Signocore\Slate\footer_markup (priority 10).

Filters the template part path used to render a footer builder element.

Parameter Type Description
$template string Template part path relative to the theme, without the .php extension.
$item string The footer element slug.
$row string The footer row: top, middle or bottom.
$column string The column number within the row.

Returns string The filtered value.

signocore_slate_header

action since 1.0.0

Fires to output the site header.

Elementor Pro, Beaver Themer and Header Footer Elementor replace the default header markup on this hook.

Theme callbacks on this hook: Signocore\Slate\header_markup (priority 10).

Renamed from slate_header in 2.0.0.

Filters the template part path used to render a header builder element.

Renamed from slate_header_elements_template_path in 2.0.0.

Parameter Type Description
$template string Template part path relative to the theme, without the .php extension.
$item string The header element slug.
$row string The header row: top, main or bottom.
$column string The column within the row, for example left or right.

Returns string The filtered value.

signocore_slate_hero_header

action since 1.0.0

Fires where the hero title section is output, above the main content area.

Theme callbacks on this hook: Signocore\Slate\hero_title (priority 10).

signocore_slate_html_itemtype

filter since 1.0.0

Filters the schema.org item type of the html element.

Parameter Type Description
$type string The item type, for example WebPage, Blog or SearchResultsPage.

Returns string The filtered value.

Filters the capability required to change the global color palette in the Customizer.

Parameter Type Description
$capability string Capability name. Default 'manage_options'.

Returns string The filtered value.

Filters whether Pattern Hub HTTP requests verify the SSL certificate.

Verification is off by default for local development hosts.

Renamed from slate/pattern_hub_ssl_verify in 2.0.0.

Parameter Type Description
$ssl_verify bool Whether to verify SSL. Default true, false for development hosts.
$endpoint string Full request URL.
$host string Host name of the request URL.

Returns bool The filtered value.

signocore_slate_post_layout

filter since 1.0.0

Filters the layout settings of the current page, such as layout, boxed style, title position and sidebar.

The block editor passes a smaller set of defaults when it prepares the editor layout.

Parameter Type Description
$layout array Layout settings keyed by setting, for example layout, boxed, feature, comments, navigation, title, transparent, sidebar and vpadding.

Returns array The filtered value.

Filters the extra offset, in pixels, applied when scrolling to an in-page anchor.

Parameter Type Description
$offset int Additional scroll offset in pixels. Default 0.

Returns int The filtered value.

signocore_slate_single

action since 1.0.0

Fires to output the main content of single posts, pages and the 404 page.

Wraps the whole content area in one hook so page builders such as Elementor can replace it.

Theme callbacks on this hook: Signocore\Slate\single_markup (priority 10).

Filters whether smooth scrolling for in-page links is enabled.

Renamed from slate/smooth_scroll_enabled in 2.0.0.

Parameter Type Description
$enabled bool Whether smooth scrolling is enabled. Default true.

Returns bool The filtered value.

Filters the offset, in pixels, kept above the target when smooth scrolling to an anchor.

Renamed from slate/smooth_scroll_offset in 2.0.0.

Parameter Type Description
$offset int Scroll offset in pixels, for example to clear a sticky header. Default 0.

Returns int The filtered value.

Filters the color groups shown in the customizer style guide.

Parameter Type Description
$settings array Style guide settings, with the color groups and their palette colors under color_groups.

Returns array The filtered value.

signocore_slate_svg_icon

filter since 1.0.0

Filters the markup of an SVG icon.

Parameter Type Description
$output string The icon markup.
$icon string The icon name.
$icon_title string The icon title for screen readers.
$base bool Whether the baseline class is added.

Returns string The filtered value.

Filters whether SVG icons include a <title> element for screen readers.

Parameter Type Description
$has_title bool Whether to add the title element. Default true.

Returns bool The filtered value.

Filters whether the theme adds support for block templates.

Renamed from slate-theme-block-templates-support in 2.0.0.

Parameter Type Description
$enabled bool Whether to add block-templates theme support. Default true.

Returns bool The filtered value.

Filters whether the theme loads its bbPress integration when bbPress is active.

Renamed from slate_theme_enable_bbpress_component in 2.0.0.

Parameter Type Description
$enabled bool Whether to load the bbPress component. Default true.

Returns bool The filtered value.

Filters the CSS font-family value generated for a typography setting.

Renamed from slate_theme_font_family_string in 2.0.0.

Parameter Type Description
$font_string string The font family, quoted when needed and followed by its fallback fonts.

Returns string The filtered value.

Filters the template part path used to render an element of the page or archive title area.

Archive titles load from template-parts/archive-title/, post and page titles from template-parts/title/.

Parameter Type Description
$template string Template part path relative to the theme, without the .php extension.
$item string The title element slug, for example breadcrumb or title.
$area string The title area, for example normal or above.

Returns string The filtered value.

Filters whether the transparent header is used on The Events Calendar archive.

The Header block passes enable instead of the theme option value.

Parameter Type Description
$transparent string enable or disable, based on the theme option.

Returns string The filtered value.

Filters the arguments used to register the theme sidebars and footer widget areas.

Also applies to the default arguments of widget areas registered by other code, where only the widget and title markup is passed.

Parameter Type Description
$args array Sidebar arguments: name, id, description and the widget and title markup.

Returns array The filtered value.

Base support

Filters the post types that get no layout settings of their own in the Customizer and the post settings.

Renamed from slate_customizer_post_type_ignore_array in 2.0.0.

Parameter Type Description
$ignore_post_types string[] Post type names to skip.

Returns string[] The filtered value.

Filters the URL patterns of classic embeds that get wrapped in a responsive video container.

Parameter Type Description
$patterns string[] Regular expressions matched against the embed URL.

Returns string[] The filtered value.

signocore_slate_microdata

filter since 1.0.0

Filters whether schema.org microdata is output for a context.

Only runs when the microdata theme option is enabled.

Parameter Type Description
$enabled bool Whether to output microdata. Default true.
$context string The microdata context, for example body-class, html or article.

Returns bool The filtered value.

Filters the public post type names the theme builds its post type settings for.

Parameter Type Description
$post_types string[] Post type names: post and page, followed by the public custom post types.

Returns string[] The filtered value.

Filters the public post types that do not get the theme post layout settings in the editor.

Parameter Type Description
$public_ignore_post_types string[] Post type names to skip.

Returns string[] The filtered value.

Filters the public custom post type objects the theme builds its post type settings for.

Parameter Type Description
$post_types WP_Post_Type[] Public, non built-in post type objects keyed by name.

Returns WP_Post_Type[] The filtered value.

Filters the post types that get no transparent header setting of their own in the Customizer.

Parameter Type Description
$transparent_ignore_post_types string[] Post type names to skip.

Returns string[] The filtered value.

Blocks

Filters extra custom fonts to add to the Slate blocks font picker.

Each entry is keyed by font name and may set weights, fallback and label.

Parameter Type Description
$fonts array Custom fonts keyed by font name. Default empty array.

Returns array The filtered value.

Fires after a Slate blocks template file is included.

Parameter Type Description
$template_name string The template file name.
$template_path string The theme template path.
$located string The full path of the template file.
$args array Arguments passed to the template.

Filters whether fixed background images stay fixed on tablet and mobile screens.

By default a fixed background attachment falls back to scroll below desktop sizes.

Parameter Type Description
$fixed_on_mobile bool Whether to keep the fixed attachment on smaller screens. Default false.

Returns bool The filtered value.

Fires before a Slate blocks template file is included.

Parameter Type Description
$template_name string The template file name.
$template_path string The theme template path.
$located string The full path of the template file.
$args array Arguments passed to the template.

Filters the unique ID a block uses for its style ID when it renders.

Changed in 2.0.0: Also fires for the Pro blocks (Image Overlay, Post Grid, Slider, Slide, Split Content and User Info), which used slate_blocks_build_render_unique_id before.

Parameter Type Description
$unique_id mixed The block unique ID, normally a string.
$block_name string The block name.
$attributes array The block attributes.

Returns mixed The filtered value.

Filters whether a button linking to # automatically gets role="button".

Parameter Type Description
$auto_apply bool Whether to apply the button role. Default true.

Returns bool The filtered value.

Filters whether block scripts and styles are skipped during REST API requests.

When true, blocks do not register or enqueue their frontend assets while a REST request renders them.

Changed in 2.0.0: Also fires for the Pro blocks (Image Overlay, Post Grid, Slider, Slide, Split Content and User Info), which used slate_blocks_check_if_rest before.

Parameter Type Description
$check bool Whether to skip block assets in REST requests. Default false.

Returns bool The filtered value.

Filters the rendered markup of a Section (column) block.

DO NOT REMOVE: The Optimizer uses this.

Parameter Type Description
$html string The block markup.
$attributes array The block attributes.
$unique_id string The block unique ID.
$block_instance WP_Block The block instance being rendered.

Returns string The filtered value.

Filters the evergreen end time of a Countdown block that is added to the page.

The default query lets the countdown script work out the end time in the browser.

Parameter Type Description
$timestamp int|string The end timestamp, or query.
$campaign_id string The countdown campaign ID.
$site_slug string The site slug used for cookies.
$reset_days int|string The number of days before the evergreen timer resets.

Returns int|string The filtered value.

Filters the site slug the Countdown block uses to name its evergreen cookies.

Parameter Type Description
$site_slug string The site slug. Default the sanitized site name.

Returns string The filtered value.

Filters whether the Count Up block rebuilds its markup from the block attributes on render.

Renamed from slate-blocks-countup-static in 2.0.0.

Parameter Type Description
$static bool Whether to render the static markup. Default false.
$attributes array The block attributes.
$block_instance WP_Block The block instance being rendered.

Returns bool The filtered value.

Filters the post used to preview dynamic content in the block editor.

Renamed from slate_blocks_dynamic_content_preview_post in 2.0.0.

Parameter Type Description
$the_post_id int|null The preview post ID. Default the most recent post, or null when there is none.

Returns int|null The filtered value.

Filters the caption of an Advanced Gallery image.

Parameter Type Description
$caption mixed The image caption, from the block or the attachment. Usually a string.
$image array The gallery image data.
$attributes array The gallery block attributes.

Returns mixed The filtered value.

Filters the link target of an Advanced Gallery image.

Parameter Type Description
$link_target string The link target, such as _blank, or an empty string.
$image array The gallery image data.
$attributes array The gallery block attributes.

Returns string The filtered value.

Filters whether a block prints its CSS inline in the content instead of in the head.

Changed in 2.0.0: Also fires for the Pro blocks (Image Overlay, Post Grid, Slider, Slide, Split Content and User Info), which used slate_blocks_force_render_inline_css_in_content before.

Parameter Type Description
$force bool Whether to force inline CSS. Default false.
$name string The block name.
$unique_id string The block unique ID.

Returns bool The filtered value.

Filters whether a block stylesheet is always printed inline.

Parameter Type Description
$force bool Whether to force the inline stylesheet. Default false.
$name string The stylesheet handle.

Returns bool The filtered value.

Filters the path of a Slate blocks template file before it is included.

The filtered path is only used when the file exists.

Parameter Type Description
$template string The located template path.
$template_name string The template file name.
$args array Arguments passed to the template.
$template_path string The theme template path.
$default_path string The default template path.

Returns string The filtered value.

Filters the located path of a Slate blocks template file.

Parameter Type Description
$template string The located template path.
$template_name string The template file name.
$template_path string The theme template path.

Returns string The filtered value.

Filters the HTML attributes of the Navigation Link block anchor element.

Parameter Type Description
$link_args array<string, mixed> Link attributes keyed by attribute name.
$attributes array The block attributes.

Returns array<string, mixed> The filtered value.

Filters the scroll speed of the Row Layout background parallax effect.

Parameter Type Description
$speed float The parallax speed. Default -0.1.

Returns float The filtered value.

Filters the fallback global palette colors printed for Slate blocks when the Slate theme is not active.

Parameter Type Description
$global_colors array<string, string> Color values keyed by CSS variable name (--global-palette1 to --global-palette9).

Returns array<string, string> The filtered value.

Filters the post types offered in the post type controls of Slate blocks.

Changed in 2.0.0: Also fires for the post type lists of the Pro blocks and the post select control, which used slate_blocks_post_types before.

Parameter Type Description
$output array<int, array<string, string>> Post type options, each with value (name) and label.

Returns array<int, array<string, string>> The filtered value.

Filters whether the Progress Bar block renders a static SVG instead of the animated version.

Renamed from slate-blocks-progress-bar-static in 2.0.0.

Parameter Type Description
$static bool Whether to render the static SVG. Default false.
$attributes array The block attributes.
$block_instance WP_Block The block instance.

Returns bool The filtered value.

Filters the character the query blocks use to split multiple values in the block editor.

Renamed from slate_blocks_query_block_split_character in 2.0.0.

Parameter Type Description
$character string The split character. Default a comma.

Returns string The filtered value.

Filters whether a block's CSS is output in the page head.

Changed in 2.0.0: Also fires for the Pro blocks (Image Overlay, Post Grid, Slider, Slide, Split Content and User Info), which used slate_blocks_render_head_css before.

Parameter Type Description
$render bool Whether to output the block CSS in the head. Default true.
$block_name string The block name.
$attributes array The block attributes.

Returns bool The filtered value.

Filters whether a block prints its CSS inline when it renders.

Changed in 2.0.0: Also fires for the Pro blocks (Image Overlay, Post Grid, Slider, Slide, Split Content and User Info), which used slate_blocks_render_inline_css before.

Parameter Type Description
$render bool Whether to print the block CSS inline. Default true.
$block_name string The block name.
$unique_id string|string[] The block unique ID.

Returns bool The filtered value.

Filters whether a block's inline CSS is moved to the footer instead of being prepended to its markup.

Changed in 2.0.0: Also fires for the Pro blocks (Image Overlay, Post Grid, Slider, Slide, Split Content and User Info), which used slate_blocks_render_styles_footer before.

Parameter Type Description
$in_footer bool Whether to print the CSS in the footer. Default true for the data and slide blocks.

Returns bool The filtered value.

Filters the current user data the User Info block adds to REST API user responses.

Renamed from slate_blocks_rest_user_data in 2.0.0.

Parameter Type Description
$data array The avatar URL (avatar) and formatted registration date (registered).

Returns array The filtered value.

Filters the SVG path markup of the Row Layout divider shapes.

Parameter Type Description
$paths array<string, string> SVG path markup keyed by divider style.
$location string The divider location, top or bottom.

Returns array<string, string> The filtered value.

Filters the HTML attributes of a Row Layout background slider slide.

DO NOT REMOVE: The optimizer uses this.

Parameter Type Description
$attrs array<string, mixed> The HTML attributes of the slide element.
$attributes array The row block attributes.

Returns array<string, mixed> The filtered value.

Filters the HTML attributes of the Row Layout background video element.

DO NOT REMOVE: The optimizer uses this.

Parameter Type Description
$video_args array<string, mixed> The video element HTML attributes.
$attributes array The row block attributes.

Returns array<string, mixed> The filtered value.

Filters the HTML attributes of the Row Layout block wrapper element.

DO NOT REMOVE: The optimizer uses this.

Parameter Type Description
$wrapper_args array<string, mixed> The wrapper element HTML attributes.
$attributes array The row block attributes.

Returns array<string, mixed> The filtered value.

Filters whether background video preloading is prevented when the row has a separate tablet or mobile background.

Parameter Type Description
$prevent bool Whether to prevent preloading. Default true.

Returns bool The filtered value.

Filters the public taxonomies and terms offered for each post type in the Pro post blocks.

Renamed from slate_blocks_taxonomies in 2.0.0.

Parameter Type Description
$output array Taxonomy objects and term options keyed by post type.

Returns array The filtered value.

Filters the theme folder that is searched for Slate blocks template overrides.

Parameter Type Description
$template_path string The template folder, relative to the theme. Default slate-blocks/.

Returns string The filtered value.

Filters whether the Image block uses the alt text stored on the attachment when the saved markup has an empty alt.

Parameter Type Description
$update_alt_globally bool Whether to use the attachment alt text. Default the block's globalAlt setting.
$attributes array The block attributes.

Returns bool The filtered value.

Filters the fluid font sizes printed as --global-slate-font-size-* CSS variables.

Parameter Type Description
$font_sizes array<string, string> CSS size values keyed by size slug (sm, md, lg, xl, xxl, xxxl).

Returns array<string, string> The filtered value.

Filters the blocks whose content the Table of Contents block skips when it collects headings.

Parameter Type Description
$blocks string[] Block names to ignore.

Returns string[] The filtered value.

Filters the CSS classes that exclude a heading from the Table of Contents block.

Parameter Type Description
$classes string[] CSS class names to exclude.

Returns string[] The filtered value.

Filters the inner blocks that the Table of Contents block skips when it collects headings.

Parameter Type Description
$blocks string[] Inner block names to ignore. Default slate/pane.

Returns string[] The filtered value.

Blocks: CSS and frontend

Filters the Slate blocks that are allowed when WordPress builds an automatic excerpt.

The same hook also fires with slate/rowlayout and slate/column as the default, to add those wrapper blocks to the excerpt_allowed_wrapper_blocks list.

Parameter Type Description
$blocks string[] Block names added to the excerpt allowed blocks. Default slate/advancedheading.

Returns string[] The filtered value.

Filters the registry of Slate blocks whose CSS is generated in the page head.

Each block class adds itself here, keyed by block name with the block class name as value.

Parameter Type Description
$blocks array<string, string> Block class names keyed by block name. Default empty array.

Returns array<string, string> The filtered value.

Filters whether the generated block CSS includes its media query rules.

Parameter Type Description
$output_media_queries bool Whether to render the media queries. Default true.

Returns bool The filtered value.

Filters the Pro blocks whose CSS the dynamic frontend generates in the page head.

Separate from signocore_slate_blocks_blocks_to_generate_post_css, which lists the blocks handled by the main frontend.

Renamed from slate_blocks_blocks_to_generate_post_css in 2.0.0.

Parameter Type Description
$blocks array<string, string> Block class names keyed by block name.

Returns array<string, string> The filtered value.

Filters each parsed block before the Pro block frontend generates its head CSS.

Also applied to every inner block.

Renamed from slate_blocks_frontend_build_css in 2.0.0.

Parameter Type Description
$block array The parsed block.

Returns array The filtered value.

Filters whether an evergreen countdown stores its end date on the server instead of in a cookie.

Only has an effect when the Slate_Blocks_Countdown class is available, which the theme does not bundle.

Renamed from slate_blocks_evergreen_countdown_no_cache_mode in 2.0.0.

Parameter Type Description
$no_cache_mode bool Whether to use server-side campaign storage. Default false.
$campaign_id string The countdown campaign ID.

Returns bool The filtered value.

Filters the FAQ schema script markup before it is printed in the page head.

Parameter Type Description
$faq_schema string The FAQ schema JSON-LD script markup.

Returns string The filtered value.

Filters the HTML tags kept in the FAQ schema answers built from Accordion panes.

Parameter Type Description
$allowed_tags string Allowed tags in strip_tags() format.
$block array The parsed Accordion pane block.

Returns string The filtered value.

Filters the answer markup of an Accordion pane in the FAQ schema.

Parameter Type Description
$answer string The answer markup built from the pane inner blocks.
$block array The parsed Accordion pane block.

Returns string The filtered value.

Filters the question text of an Accordion pane in the FAQ schema.

Parameter Type Description
$question string The question text taken from the pane title.
$block array The parsed Accordion pane block.

Returns string The filtered value.

Filters whether Slate fixes the missing width and height of SVG attachments.

Parameter Type Description
$fix bool Whether to fix SVG attachment dimensions. Default false.

Returns bool The filtered value.

Filters the CSS font-family value generated for a block font.

Changed in 2.0.0: Also fires for the Pro blocks CSS, which used slate_blocks_font_family_string before.

Parameter Type Description
$font_string string The font-family value, quoted when the name contains spaces.
$font_name string The font name.

Returns string The filtered value.

Filters a parsed block before Slate builds its head CSS.

Also fires for each inner block while the blocks are walked recursively.

Parameter Type Description
$block array The parsed block.

Returns array The filtered value.

Filters whether the FAQ schema collected from Accordion blocks is printed in the page head.

Parameter Type Description
$print bool Whether to print the FAQ schema. Default true.

Returns bool The filtered value.

Filters whether the Google Fonts collected late in the page by Slate blocks are printed in the footer.

Parameter Type Description
$print bool Whether to print the footer Google Fonts. Default true.

Returns bool The filtered value.

Filters whether the Google Fonts used by Slate blocks are printed in the page head.

Parameter Type Description
$print bool Whether to print the Google Fonts. Default true.

Returns bool The filtered value.

Filters the media query that matches screens wider than mobile.

Changed in 2.0.0: Also fires for the Pro blocks CSS, which used slate_mobile_reverse_media_query before.

Parameter Type Description
$media_query string The media query. Default (min-width: 768px).

Returns string The filtered value.

signocore_slate_svg_icons

filter since 1.0.0

Filters the SVG icon library available to Slate blocks.

Parameter Type Description
$icons array The icon definitions keyed by icon name.

Returns array The filtered value.

Filters the media query that matches tablet screens only.

Changed in 2.0.0: Also fires for the Pro blocks CSS, which used slate_tablet_only_media_query before.

Parameter Type Description
$media_query string The media query. Default (min-width: 768px) and (max-width: 1024px).

Returns string The filtered value.

Filters the tablet only media query that also matches large touch tablets such as the iPad Pro.

Parameter Type Description
$media_query string The media query.

Returns string The filtered value.

Filters the tablet media query that also matches large touch tablets such as the iPad Pro.

Parameter Type Description
$media_query string The media query.

Returns string The filtered value.

Filters whether the Google Fonts registered late through the Slate Google Fonts helper are printed in the footer.

Only fires when the Slate blocks frontend class is not loaded; otherwise the fonts join the blocks font queue.

Parameter Type Description
$print bool Whether to print the footer Google Fonts. Default true.

Returns bool The filtered value.

Filters whether the Google Fonts registered through the Slate Google Fonts helper are printed in the page head.

Only fires when the Slate blocks frontend class is not loaded; otherwise the fonts join the blocks font queue.

Parameter Type Description
$print bool Whether to print the Google Fonts. Default true.

Returns bool The filtered value.

Filters the credentials passed to WP_Filesystem() when the filesystem is not set up yet.

Parameter Type Description
$credentials array|false The filesystem credentials, or false to use the defaults. Default false.

Returns array|false The filtered value.

Blocks: Editor and settings

Filters whether Slate blocks settings stay per site on a multisite network.

Return false to register the settings menu at the network level instead.

Parameter Type Description
$individual bool Whether each site keeps its own settings. Default true.

Returns bool The filtered value.

Filters the capability that gives a user the admin level in the block editor settings.

Parameter Type Description
$capability string The capability. Default manage_options.

Returns string The filtered value.

Filters the capability required to view the Slate Blocks settings pages.

Parameter Type Description
$capability string Capability name. Default 'edit_pages'.

Returns string The filtered value.

Filters the product slug passed to the block editor scripts.

Renamed from slate-blocks-auth-slug in 2.0.0.

Parameter Type Description
$slug string The product slug. Default signocore-slate.

Returns string The filtered value.

Filters the capability that gives a user the author level in the block editor settings.

Parameter Type Description
$capability string The capability. Default publish_posts.

Returns string The filtered value.

Filters the body font weight options built from the theme body font.

Parameter Type Description
$weights array[] Weight options, each with value and label.

Returns array[] The filtered value.

Filters the button font weight options built from the theme button font.

Parameter Type Description
$weights array[] Weight options, each with value and label.

Returns array[] The filtered value.

Filters whether the cloud library is enabled in the block editor.

Parameter Type Description
$enabled bool Whether the cloud library is enabled. Default true.

Returns bool The filtered value.

Filters the capability that gives a user the contributor level in the block editor settings.

Parameter Type Description
$capability string The capability. Default edit_posts.

Returns string The filtered value.

Filters the custom fonts offered in the block editor typography controls.

Parameter Type Description
$fonts array The custom fonts. Default empty array.

Returns array The filtered value.

Filters the extra pattern libraries registered in code for the design library.

Parameter Type Description
$libraries array The libraries, each an array with at least a url key. Default empty array.

Returns array The filtered value.

Filters the body font weight options passed to the block editor.

Parameter Type Description
$weights array|null Weight options from the theme body font, or null when the theme class is missing.

Returns array|null The filtered value.

Filters the button font weight options passed to the block editor.

Parameter Type Description
$weights array|null Weight options from the theme button font, or null when the theme class is missing.

Returns array|null The filtered value.

Filters the heading font weight options passed to the block editor.

Parameter Type Description
$weights array|null Weight options from the theme heading font, or null when the theme class is missing.

Returns array|null The filtered value.

Filters the default block editor width, in pixels, for posts without a sidebar.

Parameter Type Description
$width string Width in pixels. Default '1140'.

Returns string The filtered value.

Filters the default block editor width, in pixels, for posts with a sidebar.

Parameter Type Description
$width string Width in pixels. Default '750'.

Returns string The filtered value.

Filters whether the design library is shown in the block editor.

Parameter Type Description
$enabled bool Whether the design library is shown. Default true.

Returns bool The filtered value.

Filters the stylesheet URL loaded in the design library live preview.

Parameter Type Description
$stylesheet_url string The preview stylesheet URL.

Returns string The filtered value.

Filters the meta keys copied to the duplicated post.

Parameter Type Description
$meta_keys string[] Meta keys of the original post, without the excluded keys.

Returns string[] The filtered value.

Fires after a post has been duplicated and its meta copied.

Parameter Type Description
$new_post_id int The ID of the new post.
$post WP_Post The original post.

Filters the capability required to see the Duplicate row action.

Parameter Type Description
$capability string The required capability. Default edit_slate_forms.

Returns string The filtered value.

Filters the meta keys that are not copied when a post is duplicated.

Parameter Type Description
$meta_blacklist string[] The excluded meta keys.

Returns string[] The filtered value.

Filters whether dynamic content controls are enabled in the block editor.

Parameter Type Description
$enabled bool Whether dynamic content is enabled. Default true.

Returns bool The filtered value.

Filters the capability that gives a user the editor level in the block editor settings.

Parameter Type Description
$capability string The capability. Default delete_others_pages.

Returns string The filtered value.

Filters whether the block editor width settings are enabled.

One call site passes true as the default instead.

Parameter Type Description
$enabled bool Whether the editor width settings apply. Default false, as they only apply to classic themes.

Returns bool The filtered value.

Filters the blocks listed on the Slate Blocks settings page, where each block can be enabled or disabled.

Parameter Type Description
$blocks array Block data keyed by block name, each with slug, name and desc, and optionally image, link and linkText.

Returns array The filtered value.

Filters the heading font weight options built from the theme heading font.

Parameter Type Description
$weights array[] Weight options, each with value and label.

Returns array[] The filtered value.

Filters whether the design library data is preloaded into the block editor.

Parameter Type Description
$fast_load_patterns bool Whether to preload the library. Default true, false when Gravity Forms is active.

Returns bool The filtered value.

Filters the preloaded design library section data.

Parameter Type Description
$library_data array The section data. Currently always an empty array.

Returns array The filtered value.

Filters the preloaded design library section markup.

Parameter Type Description
$library_html array The section markup data. Currently always an empty array.

Returns array The filtered value.

Filters the user role options offered in the block visibility settings.

Parameter Type Description
$specific_roles array[] Role options, each with value and label.

Returns array[] The filtered value.

Filters whether the wireframe library is shown in the design library.

Parameter Type Description
$enabled bool Whether the wireframe library is shown. Default true.

Returns bool The filtered value.

Blocks: Forms

Filters the results of the advanced form submit actions.

Parameter Type Description
$submission_results array The submission results, including the success flag.
$actions array The submit actions that ran.
$form_args array The form data.
$processed_fields array The processed form fields.
$post_id int|string The ID of the form post.

Returns array The filtered value.

Filters the extra HTML attribute string added to an advanced form input field.

Also applied to the fieldset element of grouped inputs, with the same arguments.

Parameter Type Description
$additional_attributes string The extra HTML attributes.
$attributes array The block attributes.

Returns string The filtered value.

Filters the submit actions an advanced form runs after a submission.

Parameter Type Description
$actions string[] The submit action slugs, such as email, redirect, mailerlite or fluentCRM. Default the actions set on the form, or email.
$form_args array The form data.
$processed_fields array The processed form fields.
$post_id int|string The ID of the form post.

Returns string[] The filtered value.

Filters the form data of an advanced form submission.

Parameter Type Description
$form_args array The form data, including the form block attributes and fields.
$processed_fields array The processed form fields.
$post_id int|string The ID of the form post.

Returns array The filtered value.

Filters the URL an advanced form redirects to after a successful submission.

Parameter Type Description
$redirect string The redirect URL set on the form.
$form_args array The form data.
$processed_fields array The processed form fields.
$post_id int|string The ID of the form post.

Returns string The filtered value.

Fires when an advanced form submission has been validated, before the submit actions run.

Parameter Type Description
$form_args array The form data.
$processed_fields array The processed form fields.
$post_id int|string The ID of the form post.

Filters the success and error messages of an advanced form submission.

Parameter Type Description
$messages array The messages, keyed by success, error and recaptchaerror.
$form_args array The form data.
$processed_fields array The processed form fields.
$post_id int|string The ID of the form post.
$submission_results array The results of the submit actions.

Returns array The filtered value.

Filters whether an advanced form submission is rejected.

Parameter Type Description
$reject bool Whether to reject the submission. Default false.
$form_args array The form data.
$processed_fields array The processed form fields.
$post_id int|string The ID of the form post.

Returns bool The filtered value.

Filters the message shown when an advanced form submission is rejected.

Parameter Type Description
$message string The rejection message.
$form_args array The form data.
$processed_fields array The processed form fields.
$post_id int|string The ID of the form post.

Returns string The filtered value.

Filters whether an advanced form submission counts as successful after the submit actions ran.

Parameter Type Description
$success bool Whether the submission succeeded.
$form_args array The form data.
$processed_fields array The processed form fields.
$post_id int|string The ID of the form post.
$submission_results array The results of the submit actions.

Returns bool The filtered value.

Filters the upload directory used for advanced form file uploads.

Parameter Type Description
$param array The upload directory data, as returned by wp_upload_dir(), with path and url pointing to the form subfolder.

Returns array The filtered value.

Filters the file name of a file uploaded through an advanced form.

Parameter Type Description
$file_name string The file name, built from a timestamp and a random string.
$dir string The upload directory.
$name string The original file name.

Returns string The filtered value.

Filters the footer text of the form submission email.

Parameter Type Description
$footer string Footer markup, a "Sent from" line that links to the site.

Returns string The filtered value.

Filters the FluentCRM contact fields offered for mapping in form blocks.

Parameter Type Description
$fields array[] Fields, each with key and title.

Returns array[] The filtered value.

Filters the rewrite settings of the form post type.

Parameter Type Description
$rewrite array The rewrite settings passed to register_post_type(). Default slug slate-form.

Returns array The filtered value.

Filters the URL a Form block redirects to after a successful submission.

Parameter Type Description
$redirect string The redirect URL set in the form.
$form_args array The form block settings.
$fields array The submitted fields, each with type, label and value.
$form_id string The form ID.
$post_id string The ID of the post that holds the form.

Returns string The filtered value.

Fires after a Form block submission has run all form actions.

Parameter Type Description
$form_args array The form block settings.
$fields array The submitted fields, each with type, label and value.
$form_id string The form ID.
$post_id string The ID of the post that holds the form.

Filters the messages a Form block shows after a submission.

Parameter Type Description
$messages array The form messages, with keys such as success, error and required in the first entry.

Returns array The filtered value.

Filters whether a Form block submission is reported as successful.

Returning false sends the error message back to the visitor.

Parameter Type Description
$success bool Whether the submission succeeded. Default true.
$form_args array The form block settings.
$fields array The submitted fields, each with type, label and value.
$form_id string The form ID.
$post_id string The ID of the post that holds the form.

Returns bool The filtered value.

Filters the .htaccess rules written to the form uploads folder.

Parameter Type Description
$content_array string[] The .htaccess rules, one line per item.

Returns string[] The filtered value.

Filters whether form submissions must pass a nonce check.

Off by default because the form is not a login form and cached pages would serve expired nonces.

Parameter Type Description
$verify bool Whether to verify the form nonce. Default false.

Returns bool The filtered value.

Fires after the form submission output buffer is read, before the JSON response is sent.

Parameter Type Description
$buffer string|false The buffered output, or false if no buffer was active.
$is_error bool Whether the response is an error response.

Filters the MIME types a file upload field of an advanced form accepts.

Renamed from slate_form_allowed_mime_types in 2.0.0.

Parameter Type Description
$allowed_mimes array<string, string> The allowed MIME types, keyed by file extension pattern.
$field array The file field settings.

Returns array<string, string> The filtered value.

Filters a value read from the legacy reCAPTCHA settings.

Parameter Type Description
$stored_value mixed The stored setting value.
$key string The setting key, such as recaptcha_lang.

Returns mixed The filtered value.

Filters whether the legacy reCAPTCHA settings are read from the network options on multisite.

Parameter Type Description
$network bool Whether to use the network options. Default false.

Returns bool The filtered value.

Blocks: Pattern library

Filters the template data returned for the custom Design Library package.

Parameter Type Description
$library array The custom library data, encoded as JSON after filtering. Default empty array.

Returns array The filtered value.

Filters the base directory path where the Design Library data is stored locally.

Parameter Type Description
$base_path string The base path, with a trailing slash. Default the uploads base directory.

Returns string The filtered value.

Filters the base URL of the locally stored Design Library data.

Parameter Type Description
$base_url string The base URL. Default the wp-content URL.

Returns string The filtered value.

Filters the name of the subfolder that holds the locally stored Design Library data.

Parameter Type Description
$subfolder_name string The subfolder name. Default signocore_slate_blocks_library.

Returns string The filtered value.

Filters the base URL of the CDN that serves the Design Library patterns and images.

Runs after the SLATE_LIBRARY_CDN_BASE constant is applied. A trailing slash is removed from the result.

Renamed from slate_library_cdn_base in 2.0.0.

Parameter Type Description
$base string The CDN base URL. Default https://cdn.signocore.com/themes/slate.

Returns string The filtered value.

Filters how long patterns fetched from a remote Pattern Hub library are cached.

Renamed from slate/remote_library_cache_ttl in 2.0.0.

Parameter Type Description
$ttl int Cache lifetime in seconds. Default DAY_IN_SECONDS.
$base_url string The base URL of the remote library.

Returns int The filtered value.

Blocks: Performance

Filters the name of the subfolder that holds the locally cached AI data.

Parameter Type Description
$subfolder_name string The subfolder name. Default signocore_slate_ai.

Returns string The filtered value.

Filters whether the optimizer adds resource hints to the page.

Parameter Type Description
$enabled bool Whether resource hints are enabled. Default true.

Returns bool The filtered value.

Filters the post types that get no optimizer column in the admin post list.

Parameter Type Description
$excluded_post_types string[] Post type names to exclude.

Returns string[] The filtered value.

Filters the log level used for Slate blocks debug logging.

Only fires when WP_DEBUG is enabled and error_log() is available.

Parameter Type Description
$log_level string One of debug, info, notice, warning, error, critical, alert or emergency. Default debug.

Returns string The filtered value.

Fires after the optimizer marks the stored analysis of a path as stale.

Parameter Type Description
$is_stale bool Whether the analysis is stale. Always true here.
$path Signocore\Slate\Blocks\Optimizer\Path\Path The optimized path.

Filters whether the Slate blocks optimizer is enabled.

Parameter Type Description
$enabled bool Whether the optimizer is enabled, as stored in its settings.

Returns bool The filtered value.

Filters whether an image is processed by the current optimizer image processor.

Return false to skip processing this image for this processor.

Parameter Type Description
$should_process bool Whether to process the image. Default true.
$src string|true|null The image src attribute.
$classes string|true|null The class attribute of the img tag.
$processor Signocore\Slate\Blocks\Optimizer\Image\Contracts\Processor The current processor instance.
$path Signocore\Slate\Blocks\Optimizer\Path\Path The current path.

Returns bool The filtered value.

Filters the query variables that make the optimizer skip its hash check when present.

Parameter Type Description
$query_vars string[] The query variable names.

Returns string[] The filtered value.

Fires after the optimizer stores a new content hash for a path and viewport.

Parameter Type Description
$hash string The new content hash.
$path Signocore\Slate\Blocks\Optimizer\Path\Path The optimized path.
$viewport Signocore\Slate\Blocks\Optimizer\Enums\Viewport The current viewport.

Blocks: Posts

Filters the post types that the Slate posts REST endpoint may return.

If you allow post types that are not otherwise public, their data becomes readable through this endpoint for any logged in user with the edit_post capability.

Parameter Type Description
$allowed_types string[] The allowed post type names.

Returns string[] The filtered value.

Filters the arguments passed to the_posts_pagination() for the Post Grid block pagination.

Renamed from slate_blocks_pagination_args in 2.0.0.

Parameter Type Description
$args array The pagination arguments.

Returns array The filtered value.

Fires inside the content area of each Post Grid item.

Theme callbacks on this hook: Slate_Blocks_Postgrid_Block::get_post_excerpt (priority 20), Slate_Blocks_Postgrid_Block::get_post_read_more (priority 30).

Renamed from slate_blocks_post_loop_content in 2.0.0.

Parameter Type Description
$attributes array The block attributes.

Fires at the end of each Post Grid item, before the closing article tag.

Renamed from slate_blocks_post_loop_end in 2.0.0.

Fires in the right column of each Post Grid item footer.

Theme callbacks on this hook: Slate_Blocks_Postgrid_Block::get_post_footer_author (priority 10), Slate_Blocks_Postgrid_Block::get_post_footer_comments (priority 15).

Renamed from slate_blocks_post_loop_footer_end in 2.0.0.

Parameter Type Description
$attributes array The block attributes.

Fires in the left column of each Post Grid item footer.

Theme callbacks on this hook: Slate_Blocks_Postgrid_Block::get_post_footer_date (priority 10), Slate_Blocks_Postgrid_Block::get_post_footer_categories (priority 15), Slate_Blocks_Postgrid_Block::get_post_footer_tags (priority 20).

Renamed from slate_blocks_post_loop_footer_start in 2.0.0.

Parameter Type Description
$attributes array The block attributes.

Fires inside the header of each Post Grid item.

Theme callbacks on this hook: Slate_Blocks_Postgrid_Block::get_above_categories (priority 10), Slate_Blocks_Postgrid_Block::get_post_title (priority 20), Slate_Blocks_Postgrid_Block::get_meta_area (priority 30).

Renamed from slate_blocks_post_loop_header in 2.0.0.

Parameter Type Description
$attributes array The block attributes.

Fires inside the meta area of each Post Grid item header.

Theme callbacks on this hook: Slate_Blocks_Postgrid_Block::get_meta_date (priority 10), Slate_Blocks_Postgrid_Block::get_meta_modified_date (priority 12), Slate_Blocks_Postgrid_Block::get_meta_author (priority 15), Slate_Blocks_Postgrid_Block::get_meta_category (priority 20), Slate_Blocks_Postgrid_Block::get_meta_comment (priority 25).

Renamed from slate_blocks_post_loop_header_meta in 2.0.0.

Parameter Type Description
$attributes array The block attributes.

Fires at the start of each Post Grid item, before the item header.

Theme callbacks on this hook: Slate_Blocks_Postgrid_Block::get_post_image (priority 20).

Renamed from slate_blocks_post_loop_start in 2.0.0.

Parameter Type Description
$attributes array The block attributes.

Fires when the Post Grid block query returns no posts.

Theme callbacks on this hook: Slate_Blocks_Postgrid_Block::get_no_posts (priority 15).

Renamed from slate_blocks_post_no_posts in 2.0.0.

Parameter Type Description
$attributes array The block attributes.

Filters whether the Post Grid block excludes the current post on singular views.

Separate from signocore_slate_blocks_posts_block_exclude_current, which controls the Posts block.

Renamed from slate_blocks_posts_block_exclude_current in 2.0.0.

Parameter Type Description
$exclude bool Whether to exclude the current post. Default true.

Returns bool The filtered value.

Filters whether the Post Grid block prints its Google Fonts stylesheet link in the footer.

Renamed from slate_blocks_postgrid_print_footer_google_fonts in 2.0.0.

Parameter Type Description
$print_google_fonts bool Whether to print the fonts link. Default true.

Returns bool The filtered value.

Filters whether the Posts block excludes the current post on singular views.

Parameter Type Description
$exclude bool Whether to exclude the current post. Default true.

Returns bool The filtered value.

Filters the CSS classes of the Posts block list container.

Parameter Type Description
$classes string[] The container CSS classes.

Returns string[] The filtered value.

Filters the markup shown when the Posts block query returns no posts.

Parameter Type Description
$no_posts_html string The "No posts" message markup.

Returns string The filtered value.

Filters whether the Post Grid block limits the loop to the configured post count when sticky posts are included.

Renamed from slate_blocks_posts_grid_force_post_count_with_sticky in 2.0.0.

Parameter Type Description
$force bool Whether to cut the loop off at the post count. Default true.

Returns bool The filtered value.

Filters the WP_Query arguments used by the Post Grid block.

Renamed from slate_blocks_posts_grid_query_args in 2.0.0.

Parameter Type Description
$args array The query arguments.
$attributes array The block attributes.

Returns array The filtered value.

Filters the image ratio of the post thumbnail in the Posts block.

Parameter Type Description
$ratio string Image ratio from the block attributes. Default '2-3'.
$attributes array The Posts block attributes.

Returns string The filtered value.

Filters the image size of the post thumbnail in the Posts block.

Parameter Type Description
$size string Image size name from the block attributes. Default 'medium_large'.
$attributes array The Posts block attributes.

Returns string The filtered value.

Filters the WP_Query arguments used by the Posts block.

Use it to change any query parameter, for example post_type, posts_per_page, order, orderby or a custom tax_query, or to replace the arguments entirely.

Default arguments include post_type, posts_per_page, post_status, order, orderby, ignore_sticky_posts and post__not_in, plus offset, tax_query, category__in, category__not_in, tag__in and tag__not_in when the block uses them.

Parameter Type Description
$args array The query arguments passed to WP_Query.

Returns array The filtered value.

Fires after the Posts block has rendered its posts and reset the post data.

Parameter Type Description
$attributes array The block attributes.
$loop WP_Query The Posts block query.

Fires after the Posts block query runs, before the posts are rendered.

Parameter Type Description
$attributes array The block attributes.
$loop WP_Query The Posts block query.

signocore_slate_breadcrumb_args

filter since 1.0.0

Filters the breadcrumb markup settings before they are merged with the defaults.

Parameter Type Description
$settings array Settings such as home, home_icon, before, after, delimiter and the wrap and link markup. Default empty array.

Returns array The filtered value.

Filters the breadcrumb delimiter.

Parameter Type Description
$delimiter string The delimiter. Default '/'.

Returns string The filtered value.

signocore_slate_breadcrumb_html

filter since 1.0.0

Filters the breadcrumb markup.

Also applies to the Signocore SEO breadcrumb markup when that breadcrumb engine is used.

Parameter Type Description
$html string The breadcrumb HTML.

Returns string The filtered value.

Filters the post type map the breadcrumbs use to find the taxonomy and archive page of a post type.

Parameter Type Description
$post_types array Settings keyed by post type, each with post_type, taxonomy, archive_page and archive_label, merged with the defaults. Default empty array.

Returns array The filtered value.

Filters the breadcrumb markup right after the home crumb is added.

Parameter Type Description
$html string The breadcrumb markup so far.

Returns string The filtered value.

Filters the arguments of the theme breadcrumb trail, such as labels and archive page IDs.

Parameter Type Description
$args array Arguments merged with the defaults: home_title, 404_title, search_title, page, show_shop, show_title, color_style, blog_id, portfolio_id, staff_id, testimonial_id and gallery_id.

Returns array The filtered value.

Customizer

Filters the font pairs offered in the customizer typography controls.

Parameter Type Description
$fonts array Font pairs, each with a name, heading font, body font, heading variants and preview image.

Returns array The filtered value.

Filters whether to skip loading the theme customizer scripts.

Lets plugins that use the customizer for other purposes stop the theme controls from loading.

Renamed from prevent_slate_customizer_scripts in 2.0.0.

Parameter Type Description
$prevent bool Whether to prevent the customizer scripts. Default false.

Returns bool The filtered value.

Filters the extra settings source passed to the customizer controls script.

Parameter Type Description
$source bool The extra settings source. Default false.

Returns bool The filtered value.

Filters the custom fonts to add to the customizer font lists, in the Beaver Builder custom font format.

Renamed from slate_theme_add_custom_fonts in 2.0.0.

Parameter Type Description
$fonts array Custom fonts keyed by font family. Default empty array.

Returns array The filtered value.

Filters the custom fonts and their variants offered in the customizer typography controls.

Renamed from slate_theme_custom_fonts in 2.0.0.

Parameter Type Description
$custom_fonts array Custom fonts keyed by font family. Default empty array.

Returns array The filtered value.

Filters the capability required to see the theme customizer settings.

Renamed from slate_theme_customizer_capability in 2.0.0.

Parameter Type Description
$capability string The required capability. Default 'manage_options'.

Returns string The filtered value.

Filters the choices data passed to the customizer builder controls.

Renamed from slate_theme_customizer_control_choices in 2.0.0.

Parameter Type Description
$choices array|null Control choices keyed by setting ID.

Returns array|null The filtered value.

Filters the context rules that decide when customizer controls are shown.

Renamed from slate_theme_customizer_control_contexts in 2.0.0.

Parameter Type Description
$contexts array|null Control contexts keyed by setting ID.

Returns array|null The filtered value.

Filters the live preview data of the customizer controls.

Renamed from slate_theme_customizer_live_control_data in 2.0.0.

Parameter Type Description
$live_control array|null Live preview methods keyed by setting ID.

Returns array|null The filtered value.

Filters the customizer sections the theme registers.

Renamed from slate_theme_customizer_sections in 2.0.0.

Parameter Type Description
$final_sections array Customizer sections keyed by section ID, each with a title, priority and optional panel and type.

Returns array The filtered value.

Filters the color palette presets offered in the customizer.

Renamed from slate_theme_palette_presets in 2.0.0.

Parameter Type Description
$palette_presets string JSON encoded palette presets, keyed by preset name.

Returns string The filtered value.

Dark mode

Filters whether the dark mode switch and dark mode logos are output.

Renamed from slate_dark_mode_enable in 2.0.0.

Parameter Type Description
$enabled bool Whether dark mode output is enabled. Default true.

Returns bool The filtered value.

Fires inside the footer dark mode element to output the color switcher.

Theme callbacks on this hook: Signocore\Slate\Features\footer_color_switcher (priority 10).

Renamed from slate_footer_dark_mode in 2.0.0.

signocore_slate_get_template

filter since 1.0.0

Filters the located template file of a theme feature template.

A path that does not exist is ignored and the template is not loaded.

Renamed from slate_get_template in 2.0.0.

Parameter Type Description
$template string The located template path.
$template_name string The template file name.
$template_path string The template directory looked up in the child theme.
$default_path string The default template directory.

Returns string The filtered value.

Fires inside the header dark mode element to output the color switcher.

Theme callbacks on this hook: Signocore\Slate\Features\header_color_switcher (priority 10).

Renamed from slate_header_dark_mode in 2.0.0.

Fires inside the mobile header dark mode element to output the color switcher.

Theme callbacks on this hook: Signocore\Slate\Features\mobile_color_switcher (priority 10).

Renamed from slate_mobile_dark_mode in 2.0.0.

Header add-ons

Fires inside the account login popup to output the login form.

Theme callbacks on this hook: Signocore\Slate\Features\account_login_form (priority 10).

Renamed from slate_account_login_form in 2.0.0.

Filters the arguments of the widget areas registered by the header and WooCommerce add-ons.

Renamed from slate_addon_widget_area_args in 2.0.0.

Parameter Type Description
$args array Arguments passed to register_sidebar().

Returns array The filtered value.

signocore_slate_header_account

action since 1.0.0

Fires inside the header account element to output its markup.

Theme callbacks on this hook: Signocore\Slate\Features\header_account (priority 10).

Renamed from slate_header_account in 2.0.0.

signocore_slate_header_button2

action since 1.0.0

Fires inside the second header button element to output its markup.

Theme callbacks on this hook: Signocore\Slate\Features\header_button2 (priority 10).

Renamed from slate_header_button2 in 2.0.0.

signocore_slate_header_contact

action since 1.0.0

Fires inside the header contact item to output its markup.

Theme callbacks on this hook: Signocore\Slate\Features\header_contact (priority 10).

Renamed from slate_header_contact in 2.0.0.

signocore_slate_header_divider

action since 1.0.0

Fires inside the first header divider item to output its markup.

Theme callbacks on this hook: Signocore\Slate\Features\header_divider (priority 10).

Renamed from slate_header_divider in 2.0.0.

signocore_slate_header_divider2

action since 1.0.0

Fires inside the second header divider item to output its markup.

Theme callbacks on this hook: Signocore\Slate\Features\header_divider2 (priority 10).

Renamed from slate_header_divider2 in 2.0.0.

signocore_slate_header_divider3

action since 1.0.0

Fires inside the third header divider item to output its markup.

Theme callbacks on this hook: Signocore\Slate\Features\header_divider3 (priority 10).

Renamed from slate_header_divider3 in 2.0.0.

signocore_slate_header_html2

action since 1.0.0

Fires inside the second header HTML item to output its markup.

Theme callbacks on this hook: Signocore\Slate\Features\header_html2 (priority 10).

Renamed from slate_header_html2 in 2.0.0.

Fires inside the mobile header account item to output its markup.

Theme callbacks on this hook: Signocore\Slate\Features\header_mobile_account (priority 10).

Renamed from slate_header_mobile_account in 2.0.0.

Fires inside the mobile header contact item to output its markup.

Theme callbacks on this hook: Signocore\Slate\Features\header_mobile_contact (priority 10).

Renamed from slate_header_mobile_contact in 2.0.0.

Fires inside the first mobile header divider item to output its markup.

Theme callbacks on this hook: Signocore\Slate\Features\header_mobile_divider (priority 10).

Renamed from slate_header_mobile_divider in 2.0.0.

Fires inside the second mobile header divider item to output its markup.

Theme callbacks on this hook: Signocore\Slate\Features\header_mobile_divider2 (priority 10).

Renamed from slate_header_mobile_divider2 in 2.0.0.

Fires inside the second mobile header HTML item to output its markup.

Theme callbacks on this hook: Signocore\Slate\Features\header_mobile_html2 (priority 10).

Renamed from slate_header_mobile_html2 in 2.0.0.

Fires inside the mobile header search bar item to output its markup.

Theme callbacks on this hook: Signocore\Slate\Features\header_mobile_search_bar (priority 10).

Renamed from slate_header_mobile_search_bar in 2.0.0.

Fires inside the header search bar item to output its markup.

Theme callbacks on this hook: Signocore\Slate\Features\header_search_bar (priority 10).

Renamed from slate_header_search_bar in 2.0.0.

Fires inside the header toggle widget item to output the toggle button and its widget drawer.

Theme callbacks on this hook: Signocore\Slate\Features\header_toggle_widget (priority 10).

Renamed from slate_header_toggle_widget in 2.0.0.

signocore_slate_mobile_button2

action since 1.0.0

Fires inside the second mobile header button item to output its markup.

Theme callbacks on this hook: Signocore\Slate\Features\mobile_button2 (priority 10).

Renamed from slate_mobile_button2 in 2.0.0.

Fires inside the mobile secondary navigation item to output the menu.

Theme callbacks on this hook: Signocore\Slate\Features\mobile_secondary_navigation (priority 10).

Renamed from slate_mobile_secondary_navigation in 2.0.0.

Fires inside the quaternary navigation header item to output the menu.

Theme callbacks on this hook: Signocore\Slate\Features\quaternary_navigation (priority 10).

Renamed from slate_quaternary_navigation in 2.0.0.

Fires inside the tertiary navigation header item to output the menu.

Theme callbacks on this hook: Signocore\Slate\Features\tertiary_navigation (priority 10).

Renamed from slate_tertiary_navigation in 2.0.0.

Import and export

Fires after the demo Customizer settings have been imported.

Renamed from slate/import/after_customizer_import in 2.0.0.

Parameter Type Description
$data array The imported Customizer data.

Filters the theme templates whose Customizer export files may be imported.

Renamed from slate/import/allowed_export_templates in 2.0.0.

Parameter Type Description
$allowed_templates string[] Allowed template slugs. Default is the active theme and, on a child theme, its parent theme.

Returns string[] The filtered value.

Filters the title prefix of the media library attachment created for the demo importer log file.

Renamed from slate/import/attachment_prefix in 2.0.0.

Parameter Type Description
$prefix string Attachment title prefix. Default One Click Demo Import - .

Returns string The filtered value.

Filters the widgets the site supports, used to decide which demo widgets can be imported.

Renamed from slate/import/available_widgets in 2.0.0.

Parameter Type Description
$available_widgets array Widgets keyed by id_base, each with id_base and name.

Returns array The filtered value.

Filters the decoded widget import data before the widgets are imported.

Renamed from slate/import/before_widgets_import_data in 2.0.0.

Parameter Type Description
$data mixed The decoded widget data, a stdClass object keyed by sidebar ID.

Returns mixed The filtered value.

Filters whether images referenced in the imported Customizer settings are downloaded to the media library.

Renamed from slate/import/customizer_import_images in 2.0.0.

Parameter Type Description
$import_images bool Whether to import the images. Default true.

Returns bool The filtered value.

Fires after an uploaded Customizer export file has been imported.

Renamed from slate/import/customizer_imported in 2.0.0.

Parameter Type Description
$data array The imported export data, including the mods array.

Fires after the Customizer settings and the global palette have been reset.

Fires both for the Customizer reset AJAX request and for the WP-CLI reset command.

Renamed from slate/import/customizer_reset in 2.0.0.

Filters the date format used for the import start time in demo import file names.

Renamed from slate/import/date_format_for_file_names in 2.0.0.

Parameter Type Description
$date_format string PHP date format. Default Y-m-d__H-i-s.

Returns string The filtered value.

Filters the file name prefix of the downloaded demo content import file.

Renamed from slate/import/downloaded_content_file_prefix in 2.0.0.

Parameter Type Description
$prefix string File name prefix. Default demo-content-import-file_.

Returns string The filtered value.

Filters the file name suffix and extension of the downloaded demo content import file.

Renamed from slate/import/downloaded_content_file_suffix_and_file_extension in 2.0.0.

Parameter Type Description
$suffix string File name suffix including the extension. Default .xml.

Returns string The filtered value.

Filters the file name prefix of the downloaded demo Customizer import file.

Renamed from slate/import/downloaded_customizer_file_prefix in 2.0.0.

Parameter Type Description
$prefix string File name prefix. Default demo-customizer-import-file_.

Returns string The filtered value.

Filters the file name suffix and extension of the downloaded demo Customizer import file.

Renamed from slate/import/downloaded_customizer_file_suffix_and_file_extension in 2.0.0.

Parameter Type Description
$suffix string File name suffix including the extension. Default .dat.

Returns string The filtered value.

Filters the file name prefix of the downloaded demo Depicter import file.

Renamed from slate/import/downloaded_depicter_file_prefix in 2.0.0.

Parameter Type Description
$prefix string File name prefix. Default demo-depicter-import-file_.

Returns string The filtered value.

Filters the file name suffix and extension of the downloaded demo Depicter import file.

Renamed from slate/import/downloaded_depicter_file_suffix_and_file_extension in 2.0.0.

Parameter Type Description
$suffix string File name suffix including the extension. Default .zip.

Returns string The filtered value.

Filters the file name suffix and extension of the downloaded demo forms import file.

Renamed from slate/import/downloaded_form_file_suffix_and_file_extension in 2.0.0.

Parameter Type Description
$suffix string File name suffix including the extension. Default .json.

Returns string The filtered value.

Filters the file name prefix of the downloaded demo forms import file.

The same filter also runs for the Give donations and Give forms import files, with the defaults demo-give-donations-import-file_ and demo-give-forms-import-file_.

Renamed from slate/import/downloaded_forms_file_prefix in 2.0.0.

Parameter Type Description
$prefix string File name prefix. Default demo-forms-import-file_.

Returns string The filtered value.

Filters the file name suffix and extension of the downloaded demo Give donations import file.

Renamed from slate/import/downloaded_give_donations_file_suffix_and_file_extension in 2.0.0.

Parameter Type Description
$suffix string File name suffix including the extension. Default .json.

Returns string The filtered value.

Filters the file name suffix and extension of the downloaded demo Give forms import file.

Renamed from slate/import/downloaded_give_form_file_suffix_and_file_extension in 2.0.0.

Parameter Type Description
$suffix string File name suffix including the extension. Default .json.

Returns string The filtered value.

Filters the file name prefix of the downloaded demo widgets import file.

Renamed from slate/import/downloaded_widgets_file_prefix in 2.0.0.

Parameter Type Description
$prefix string File name prefix. Default demo-widgets-import-file_.

Returns string The filtered value.

Filters the file name suffix and extension of the downloaded demo widgets import file.

Renamed from slate/import/downloaded_widgets_file_suffix_and_file_extension in 2.0.0.

Parameter Type Description
$suffix string File name suffix including the extension. Default .json.

Returns string The filtered value.

Filters whether the Customizer import runs the core customize_save hooks.

Renamed from slate/import/enable_wp_customize_save_hooks in 2.0.0.

Parameter Type Description
$use_wp_customize_save_hooks bool Whether to fire customize_save, customize_save_{$key} and customize_save_after. Default false.

Returns bool The filtered value.

Filters the allowed mime types used to check the demo importer log file before it is added to the media library.

Renamed from slate/import/file_mimes in 2.0.0.

Parameter Type Description
$log_mimes array<string, string> Mime types keyed by file extension. Default txt => text/plain.

Returns array<string, string> The filtered value.

Filters the file system method the demo importer requires for writing import files.

The importer stops with an error when this does not match get_filesystem_method().

Renamed from slate/import/file_system_method in 2.0.0.

Parameter Type Description
$file_system_method string Required file system method. Default direct.

Returns string The filtered value.

Filters the results of the Fluent Forms demo import.

Renamed from slate/import/form_import_results in 2.0.0.

Parameter Type Description
$results array Results with a message and the inserted_forms list.

Returns array The filtered value.

Filters the results of the GiveWP demo import.

Renamed from slate/import/give_import_results in 2.0.0.

Parameter Type Description
$results array Results with a message.

Returns array The filtered value.

Filters the file name prefix of the demo importer log file.

Renamed from slate/import/log_file_prefix in 2.0.0.

Parameter Type Description
$prefix string File name prefix. Default log_file_.

Returns string The filtered value.

Filters the file name suffix and extension of the demo importer log file.

Renamed from slate/import/log_file_suffix_and_file_extension in 2.0.0.

Parameter Type Description
$suffix string File name suffix including the extension. Default .txt.

Returns string The filtered value.

Filters the demo import admin page settings used to build the file system credentials URL.

Renamed from slate/import/plugin_page_setup in 2.0.0.

Parameter Type Description
$plugin_page_setup array Page settings with the keys parent_slug, page_title, menu_title, capability and menu_slug.

Returns array The filtered value.

Filters whether intermediate image sizes are generated for images during the demo content import.

Renamed from slate/import/regenerate_thumbnails_in_content_import in 2.0.0.

Parameter Type Description
$regenerate bool Whether to generate the image sizes. Default true.

Returns bool The filtered value.

Filters whether demo pages that match the existing WooCommerce shop, cart, checkout and account pages are skipped during the content import.

Its callback process_stop_woo_pages() is not registered at the moment (the add_filter() call is commented out), so the filter does not run.

Renamed from stop_importing_woo_pages in 2.0.0.

Parameter Type Description
$stop_importing bool Whether to skip the WooCommerce pages. Default false.

Returns bool The filtered value.

Filters whether the demo importer writes its results and errors to log files.

Renamed from slate_import_templates_save_log_files in 2.0.0.

Parameter Type Description
$save_log_files bool Whether to write log files. Default false.

Returns bool The filtered value.

Filters the number of seconds one AJAX request of the demo content import may run before a new request is started.

The image processing step passes a default of 45 seconds instead of 25.

Renamed from slate/import/time_for_one_ajax_call in 2.0.0.

Parameter Type Description
$seconds int Time limit in seconds. Default 25.

Returns int The filtered value.

Filters the directory path where the demo importer log file is saved.

Renamed from slate/import/upload_file_path in 2.0.0.

Parameter Type Description
$upload_path string Directory path with a trailing slash. Default is the current uploads directory.

Returns string The filtered value.

Filters the directory URL of the demo importer log file.

Renamed from slate/import/upload_file_url in 2.0.0.

Parameter Type Description
$upload_url string Directory URL with a trailing slash. Default is the current uploads URL.

Returns string The filtered value.

Filters the widget import results.

Renamed from slate/import/widget_import_results in 2.0.0.

Parameter Type Description
$results array Import results per sidebar, with a message for each widget.

Returns array The filtered value.

Fires after a single demo widget has been imported.

Renamed from slate/import/widget_importer_after_single_widget_import in 2.0.0.

Parameter Type Description
$after_widget_import array Import details with the keys sidebar, sidebar_old, widget, widget_type, widget_id, widget_id_old, widget_id_num and widget_id_num_old.

Filters the settings object of a single widget before it is converted to an array and imported.

Kept for backwards compatibility; signocore_slate_import_widget_settings_array is preferred.

Renamed from slate/import/widget_settings in 2.0.0.

Parameter Type Description
$widget object The widget settings object.

Returns object The filtered value.

Filters the settings array of a single widget before it is imported.

Runs before the check for an identical existing widget, so changes such as URL replacements are taken into account.

Theme callbacks on this hook: Signocore\Slate\Import\ImportActions::fix_custom_menu_widget_ids (priority 10), Signocore\Slate\Import\ImportActions::fix_widget_images (priority 10), Signocore\Slate\Import\ImportActions::fix_widget_links (priority 10).

Renamed from slate/import/widget_settings_array in 2.0.0.

Parameter Type Description
$widget array The widget settings.

Returns array The filtered value.

Local Gravatars

Filters the directory where local copies of gravatars are stored.

Renamed from get_local_gravatars_base_path in 2.0.0.

Parameter Type Description
$path string Absolute path of the gravatars directory. Default wp-content/gravatars.

Returns string The filtered value.

Filters the URL of the local gravatars directory.

Renamed from get_local_gravatars_base_url in 2.0.0.

Parameter Type Description
$url string URL of the gravatars directory. Default the gravatars directory in the content URL.

Returns string The filtered value.

Filters how often the local gravatars directory is emptied.

Renamed from get_local_gravatars_cleanup_frequency in 2.0.0.

Parameter Type Description
$frequency string A WP-Cron schedule name. Default 'weekly'.

Returns string The filtered value.

Filters the image URL used when a gravatar cannot be stored locally.

Renamed from get_local_gravatars_fallback_url in 2.0.0.

Parameter Type Description
$fallback_url string The fallback URL. Default empty string, which keeps the remote URL.
$remote_url string The remote gravatar URL.

Returns string The filtered value.

Filters the maximum time spent downloading gravatars in one request.

Renamed from get_local_gravatars_max_process_time in 2.0.0.

Parameter Type Description
$seconds int Maximum process time in seconds. Default 5.

Returns int The filtered value.

Options

signocore_slate_active_palette

filter since 1.0.0

Filters which stored palette is active.

Parameter Type Description
$active string The active palette key: palette, second-palette or third-palette.

Returns string The filtered value.

Filters the default global color palette.

Parameter Type Description
$palette string JSON-encoded palette data with the palette, second-palette, third-palette and active keys.

Returns string The filtered value.

Filters the color of palette color 10 when it is synced with the complement of palette color 1.

Parameter Type Description
$color string CSS color value. Default an oklch() complement of --global-palette1.

Returns string The filtered value.

signocore_slate_palette_option

filter since 1.0.0

Filters the value of a single global palette color.

Parameter Type Description
$value string The color value, or an empty string when the color is not set.
$subkey string The palette color slug, for example palette1.

Returns string The filtered value.

Filters the name of a custom option that stores a theme setting instead of the default theme settings storage.

Parameter Type Description
$option_name string Option name to read the setting from. Default empty string, which keeps the default storage.
$key string The setting key.

Returns string The filtered value.

Filters the name of the option that holds the theme settings when they are stored as an option.

Renamed from slate_theme_option_name in 2.0.0.

Parameter Type Description
$name string Option name. Default signocore_slate_settings.

Returns string The filtered value.

Filters how the theme settings are stored.

Renamed from slate_theme_option_type in 2.0.0.

Parameter Type Description
$type string theme_mod (default) or option.

Returns string The filtered value.

Filters the default values of the theme settings.

Renamed from slate_theme_options_defaults in 2.0.0.

Parameter Type Description
$defaults array Default setting values keyed by setting name.

Returns array The filtered value.

Plugin integrations

Filters whether the theme global colors are added to Elementor and synced back when Elementor saves them.

Parameter Type Description
$enabled bool Whether to add the theme colors to Elementor. Default true.

Returns bool The filtered value.

Filters whether the Google Fonts request for the GiveWP donation form iframe uses display=swap.

Parameter Type Description
$swap bool Whether to add display=swap. Default true.

Returns bool The filtered value.

Filters whether the theme outputs its LearnDash color styles.

Parameter Type Description
$enabled bool Whether to add the LearnDash color styles. Default true.

Returns bool The filtered value.

Filters whether the theme colors override the LearnDash colors even when a LearnDash primary color is set.

Parameter Type Description
$override bool Whether to force the theme colors. Default false.

Returns bool The filtered value.

Filters whether the global palette colors are registered as an Elementor Pro dynamic tag.

Renamed from slate_theme_add_palette_to_elementor_tags in 2.0.0.

Parameter Type Description
$enabled bool Whether to add the palette dynamic tag. Default false.

Returns bool The filtered value.

Filters whether the theme sets a full width layout without title on empty pages opened in Elementor.

Posts are never changed.

Renamed from slate_theme_elementor_default in 2.0.0.

Parameter Type Description
$enabled bool Whether to apply the default Elementor page settings. Default true.

Returns bool The filtered value.

Filters the Google Fonts loaded in the GiveWP donation form iframe.

Renamed from slate_theme_givewp_google_fonts_array in 2.0.0.

Parameter Type Description
$google_fonts array Google Fonts data keyed by font family, with variants and subsets.

Returns array The filtered value.

Filters the query arguments of the Google Fonts URL for the GiveWP donation form iframe.

Renamed from slate_theme_givewp_google_fonts_query_args in 2.0.0.

Parameter Type Description
$args array Query arguments such as family, subset and display.

Returns array The filtered value.

Fires to output the title area of a single The Events Calendar event.

The block editor template passes its template instance as the second argument instead of null.

Parameter Type Description
$area string The title placement being rendered, normal for the in-content title.
$template object|null The Events Calendar template instance, or null in the classic template.

Styles

Filters the extra width added to wide aligned blocks, per CSS unit.

Parameter Type Description
$wide_width_add array<string, string> Extra width keyed by unit (px, em, rem, vw).

Returns array<string, string> The filtered value.

Filters the selector used for the global body styles.

Parameter Type Description
$body_selector string The body selector. Default 'body'.

Returns string The filtered value.

signocore_slate_css_files

filter since 1.0.0

Filters the theme CSS files to register and enqueue.

Parameter Type Description
$css_files array Associative array of CSS files, as $handle => $data pairs. $data holds file (path relative to assets/css) and optionally global (enqueue immediately instead of only registering) and preload_callback (callback that decides whether to preload the file for the current request).

Returns array The filtered value.

Filters the media query used for desktop styles.

Changed in 2.0.0: Also fires for the Pro blocks CSS, which used slate_desktop_media_query before.

Parameter Type Description
$media_query string The desktop media query. Default '(min-width: 1025px)'.

Returns string The filtered value.

Filters whether Google Fonts are requested with display=swap.

Changed in 2.0.0: Also fires for the Post Grid block fonts, which used slate_display_swap_google_fonts before.

Parameter Type Description
$display_swap bool Whether to add display=swap to the Google Fonts request. Default true.

Returns bool The filtered value.

signocore_slate_dynamic_css

filter since 1.0.0

Filters the dynamic CSS added inline to the main theme stylesheet on the front end.

Parameter Type Description
$css string The generated CSS. Default empty string.

Returns string The filtered value.

Filters the dynamic CSS added inline for the block editor.

Parameter Type Description
$css string The generated editor CSS. Default empty string.

Returns string The filtered value.

Filters whether locally hosted Google Fonts are preloaded when font preloading is enabled.

Parameter Type Description
$preload bool Whether to print preload links for the local font files. Default true.

Returns bool The filtered value.

Filters the media query used for mobile styles.

Changed in 2.0.0: Also fires for the Pro blocks CSS, which used slate_mobile_media_query before.

Parameter Type Description
$media_query string The mobile media query. Default '(max-width: 767px)'.

Returns string The filtered value.

Filters the extra width added to wide aligned blocks in the narrow content layout, per CSS unit.

Parameter Type Description
$n_wide_width_add array<string, string> Extra width keyed by unit (px, em, rem, vw).

Returns array<string, string> The filtered value.

Filters whether to preload stylesheets and inject their link tags within the page content.

Parameter Type Description
$preloading_styles_enabled bool Whether preloading stylesheets and injecting them is enabled.

Returns bool The filtered value.

Filters whether the theme builds a Google Fonts stylesheet URL at all.

Parameter Type Description
$print bool Whether to load Google Fonts. Default true.

Returns bool The filtered value.

Filters the selector that holds the global CSS custom properties.

Parameter Type Description
$root_selector string The root selector. Default ':root'.

Returns string The filtered value.

Filters the media query used for tablet styles.

Some feature modules also pass their desktop query (min-width: 1025px) through this filter.

Changed in 2.0.0: Also fires for the Pro blocks CSS, which used slate_tablet_media_query before.

Parameter Type Description
$media_query string The tablet media query. Default '(max-width: 1024px)'.

Returns string The filtered value.

Filters whether the author box stylesheet is preloaded for the current request.

Renamed from slate_theme_enable_author_box_css in 2.0.0.

Parameter Type Description
$show_author_box bool Whether the author box is shown on the current page.

Returns bool The filtered value.

Filters whether the comments stylesheet is preloaded for the current request.

Renamed from slate_theme_enable_comment_css in 2.0.0.

Parameter Type Description
$show_comments bool Whether comments are shown on the current page.

Returns bool The filtered value.

Filters the fallback font stack appended to the global heading font family.

Renamed from slate_theme_global_display_typography_fallback in 2.0.0.

Parameter Type Description
$fallback string The fallback font family. Default 'sans-serif'.

Returns string The filtered value.

Filters the fallback font stack appended to the global body font family.

Renamed from slate_theme_global_typography_fallback in 2.0.0.

Parameter Type Description
$fallback string The fallback font family. Default 'sans-serif'.

Returns string The filtered value.

Filters the Google Fonts to load for a font set.

Renamed from slate_theme_google_fonts_array in 2.0.0.

Parameter Type Description
$google_fonts array|null Google Fonts keyed by family, each with fontfamily, fontvariants and fontsubsets, or null.
$font_set string The font set being loaded, such as 'gfonts' or 'footer_gfonts'. Default 'header'.

Returns array|null The filtered value.

Filters the query arguments of the Google Fonts stylesheet URL.

Renamed from slate_theme_google_fonts_query_args in 2.0.0.

Parameter Type Description
$args array Query arguments, with family and optionally subset and display.

Returns array The filtered value.

Template functions

Filters the CSS classes of the archive posts container.

Parameter Type Description
$classes string[] Archive container classes.

Returns string[] The filtered value.

Filters the CSS classes of the archive hero section.

Parameter Type Description
$classes string[] Archive hero classes.

Returns string[] The filtered value.

Filters the infinite scroll settings added to the archive posts container.

Theme callbacks on this hook: Signocore\Slate\Features\infinite_posts (priority 5).

Parameter Type Description
$attributes string JSON encoded infinite scroll settings. Default empty.

Returns string The filtered value.

Filters the post type slug used to look up the archive settings.

Parameter Type Description
$slug string|false Post type slug, or false when it cannot be determined.

Returns string|false The filtered value.

Filters the CSS classes of the archive title area.

Parameter Type Description
$classes string[] Archive title classes.

Returns string[] The filtered value.

Fires before the logo image is printed in the desktop site branding.

Renamed from before_slate_logo_output in 2.0.0.

filter since 1.0.0

Filters the markup of the main custom logo.

Parameter Type Description
$html string The custom logo HTML markup.
$blog_id int ID of the blog to get the custom logo for.

Returns string The filtered value.

Filters the markup of an alternate logo, such as the transparent or sticky header logo.

Parameter Type Description
$html string The logo HTML markup.
$option_string string The ID of the theme option that holds the logo.

Returns string The filtered value.

Filters the class string of a desktop header row wrapper.

Renamed from slate-header-row-class-string in 2.0.0.

Parameter Type Description
$classes string Space-separated CSS classes for the header row.

Returns string The filtered value.

signocore_slate_logo_url

filter since 1.0.0

Filters the URL the site logo links to.

Changed in 2.0.0: Also fires for the dark mode logo in LearnDash focus mode, which used slate_logo_url before.

Parameter Type Description
$url string The logo link URL. Default is the home URL.

Returns string The filtered value.

Filters whether mega menu support is enabled for the mobile navigation menus.

Changed in 2.0.0: Also fires for the mobile secondary, tertiary and quaternary menus of the header add-ons, which used slate_mobile_allow_mega_support before.

Parameter Type Description
$allow bool Whether mega menu support is enabled. Default true.

Returns bool The filtered value.

Filters the query arguments used to find related posts.

Parameter Type Description
$related_args array The WP_Query arguments for the related posts.

Returns array The filtered value.

Filters the number of related posts carousel columns per breakpoint.

Parameter Type Description
$cols int[] Column counts keyed by breakpoint (xxl, xl, md, sm, xs, ss).

Returns int[] The filtered value.

Filters whether related posts are matched by both categories and tags.

Parameter Type Description
$use_tags bool Whether to match on categories and tags. Default true. When false, only categories are used.

Returns bool The filtered value.

Filters whether a social link is printed without the target and rel attributes.

Phone and email links never get these attributes.

Parameter Type Description
$omit_target bool Whether to leave out the target and rel attributes. Default false.
$item array The social item settings (id, label, source and so on).

Returns bool The filtered value.

Filters the Slate Header block markup before it is printed in the site header.

The theme runs the usual content filters (blocks, shortcodes, embeds, texturize) on this hook.

Renamed from slate_theme_the_content in 2.0.0.

Parameter Type Description
$content string The header block markup.

Returns string The filtered value.

Templates: Content

signocore_slate_404_content

action since 1.0.0

Fires to output the content of the 404 page.

Theme callbacks on this hook: Signocore\Slate\get_404_content (priority 10).

Filters the author markup in the post meta.

Parameter Type Description
$author_output string The author meta HTML, including the avatar and label when enabled.

Returns string The filtered value.

Filters whether the author name in post meta links to the website in the author profile.

When false, the author name links to the author archive instead.

Changed in 2.0.0: Also fires in the Post Grid block, which used slate_author_use_profile_link before.

Parameter Type Description
$use_profile_link bool Whether to link to the author profile website when one is set. Default true.

Returns bool The filtered value.

Fires to output the archive title area inside the content.

Theme callbacks on this hook: Signocore\Slate\slate_entry_archive_header (priority 10).

Parameter Type Description
$slug string The archive context, the post type slug followed by _archive.
$area string The title area, normal for the in-content title.

Fires to output the archive title area inside the hero section.

Theme callbacks on this hook: Signocore\Slate\slate_entry_archive_header (priority 10).

Parameter Type Description
$slug string The archive context, the post type slug followed by _archive.
$area string The title area, above for the hero title.

Filters the CSS classes of the single entry content wrapper.

Parameter Type Description
$classes string Space-separated CSS classes. Default entry-content single-content.

Returns string The filtered value.

signocore_slate_entry_header

action since 1.0.0

Fires to output the single entry title area inside the content.

Theme callbacks on this hook: Signocore\Slate\slate_entry_header (priority 10).

Parameter Type Description
$post_type string|false The current post type, or false when there is no post.
$area string The title area, normal for the in-content title.

signocore_slate_entry_hero

action since 1.0.0

Fires to output the single entry title area inside the hero section.

Theme callbacks on this hook: Signocore\Slate\slate_entry_header (priority 10).

Parameter Type Description
$post_type string|false The current post type, or false when there is no post.
$area string The title area, above for the hero title.

signocore_slate_loop_entry

action since 1.0.0

Fires to output a single entry in the archive loop.

Theme callbacks on this hook: Signocore\Slate\loop_entry (priority 10).

Fires to output the content of an entry in the archive loop.

Theme callbacks on this hook: Signocore\Slate\loop_entry_header (priority 10), Signocore\Slate\loop_entry_summary (priority 20), Signocore\Slate\loop_entry_footer (priority 30).

Fires to output the header of an entry in the archive loop.

Theme callbacks on this hook: Signocore\Slate\loop_entry_taxonomies (priority 10), Signocore\Slate\loop_entry_title (priority 20), Signocore\Slate\loop_entry_meta (priority 30).

Fires to output the featured image of an entry in the archive loop.

Theme callbacks on this hook: Signocore\Slate\loop_entry_thumbnail (priority 10).

signocore_slate_pagination_args

filter since 1.0.0

Filters the arguments passed to the_posts_pagination() on archive pages.

Parameter Type Description
$args array The pagination arguments (mid_size, prev_text, next_text, screen_reader_text).

Returns array The filtered value.

Filters the arguments passed to the_post_navigation() on single entries.

Parameter Type Description
$args array The post navigation arguments (prev_text, next_text).

Returns array The filtered value.

Filters the query arguments of the related posts carousel.

Parameter Type Description
$args array The WP_Query arguments for the related posts carousel.

Returns array The filtered value.

Filters the grid column classes of the related posts list.

Parameter Type Description
$columns_class string Space-separated grid column classes.

Returns string The filtered value.

Filters whether the archive description is shown in the archive title area.

Parameter Type Description
$show bool Whether to show the archive description. Default true on taxonomy and archive pages, except search and the product archive.

Returns bool The filtered value.

signocore_slate_single_content

action since 1.0.0

Fires to output the single entry content inside the loop.

Theme callbacks on this hook: Signocore\Slate\single_content (priority 10).

Filters the image size of the featured image on single entries.

Parameter Type Description
$size string The registered image size name. Default full.

Returns string The filtered value.

Filters the comments title markup above the comments list.

Parameter Type Description
$title_output string The comments title HTML.

Returns string The filtered value.

Fires to output the info element of the title area.

The bbPress integration uses it to print the topic meta (back to forum link and reply count).

action since 1.0.0

Fires to output the bottom footer row.

Theme callbacks on this hook: Signocore\Slate\bottom_footer (priority 10).

action since 1.0.0

Fires to output the footer HTML element.

Theme callbacks on this hook: Signocore\Slate\footer_html (priority 10).

Fires to output the footer navigation element.

Theme callbacks on this hook: Signocore\Slate\footer_navigation (priority 10).

action since 1.0.0

Fires to output the footer social links element.

Theme callbacks on this hook: Signocore\Slate\footer_social (priority 10).

action since 1.0.0

Fires to output the middle footer row.

Theme callbacks on this hook: Signocore\Slate\middle_footer (priority 10).

Fires to output one column of a footer row.

Theme callbacks on this hook: Signocore\Slate\footer_column (priority 10).

Parameter Type Description
$row string The footer row name (top, middle or bottom).
$column int The column number, starting at 1.
action since 1.0.0

Fires to output the top footer row.

Theme callbacks on this hook: Signocore\Slate\top_footer (priority 10).

Templates: Header

signocore_slate_bottom_header

action since 1.0.0

Fires to output the desktop bottom header row.

Theme callbacks on this hook: Signocore\Slate\bottom_header (priority 10).

signocore_slate_header_button

action since 1.0.0

Fires inside the header button item to output the button.

Theme callbacks on this hook: Signocore\Slate\header_button (priority 10).

Renamed from slate_header_button in 2.0.0.

signocore_slate_header_cart

action since 1.0.0

Fires inside the header cart item to output the cart.

Theme callbacks on this hook: Signocore\Slate\header_cart (priority 10).

Renamed from slate_header_cart in 2.0.0.

signocore_slate_header_html

action since 1.0.0

Fires inside the header HTML item to output its content.

Theme callbacks on this hook: Signocore\Slate\header_html (priority 10).

Renamed from slate_header_html in 2.0.0.

action since 1.0.0

Fires inside the header search item to output the search toggle.

Theme callbacks on this hook: Signocore\Slate\header_search (priority 10).

Renamed from slate_header_search in 2.0.0.

signocore_slate_header_social

action since 1.0.0

Fires inside the header social item to output the social links.

Theme callbacks on this hook: Signocore\Slate\header_social (priority 10).

Renamed from slate_header_social in 2.0.0.

signocore_slate_main_header

action since 1.0.0

Fires to output the desktop main header row.

Theme callbacks on this hook: Signocore\Slate\main_header (priority 10).

Fires inside the mobile header to output the bottom row.

Theme callbacks on this hook: Signocore\Slate\mobile_bottom_header (priority 10).

signocore_slate_mobile_button

action since 1.0.0

Fires inside the mobile header button item to output the button.

Theme callbacks on this hook: Signocore\Slate\mobile_button (priority 10).

signocore_slate_mobile_cart

action since 1.0.0

Fires inside the mobile header cart item to output the cart.

Theme callbacks on this hook: Signocore\Slate\mobile_cart (priority 10).

signocore_slate_mobile_header

action since 1.0.0

Fires to output the mobile header.

Theme callbacks on this hook: Signocore\Slate\mobile_header (priority 10).

signocore_slate_mobile_html

action since 1.0.0

Fires inside the mobile header HTML item to output its content.

Theme callbacks on this hook: Signocore\Slate\mobile_html (priority 10).

Fires inside the mobile header wrapper to output the main row.

Theme callbacks on this hook: Signocore\Slate\mobile_main_header (priority 10).

Fires inside the mobile header navigation item to output the mobile menu.

Theme callbacks on this hook: Signocore\Slate\mobile_navigation (priority 10).

Fires inside the mobile header logo item to output the site branding.

Theme callbacks on this hook: Signocore\Slate\mobile_site_branding (priority 10).

signocore_slate_mobile_social

action since 1.0.0

Fires inside the mobile header social item to output the social links.

Theme callbacks on this hook: Signocore\Slate\mobile_social (priority 10).

Fires inside the mobile header wrapper to output the top row.

Theme callbacks on this hook: Signocore\Slate\mobile_top_header (priority 10).

Fires inside the mobile header trigger item to output the menu toggle button.

Theme callbacks on this hook: Signocore\Slate\navigation_popup_toggle (priority 10).

Renamed from slate_navigation_popup_toggle in 2.0.0.

Fires inside the header primary navigation item to output the menu.

Theme callbacks on this hook: Signocore\Slate\primary_navigation (priority 10).

Fires to output the elements of one column in a desktop header row.

The template fires this once per column, with left, left_center, center, right_center or right as the column.

Theme callbacks on this hook: Signocore\Slate\header_column (priority 10).

Parameter Type Description
$row string The header row: top, main or bottom.
$column string The column within the row, for example left.

Fires to output the elements of one column in a mobile header row.

The template fires this once per column, with left, left_center, center, right_center or right as the column.

Theme callbacks on this hook: Signocore\Slate\mobile_header_column (priority 10).

Parameter Type Description
$row string The mobile header row: top, main or bottom.
$column string The column within the row, for example left.

Fires inside the header secondary navigation item to output the menu.

Theme callbacks on this hook: Signocore\Slate\secondary_navigation (priority 10).

signocore_slate_site_branding

action since 1.0.0

Fires inside the header logo item to output the site branding.

Theme callbacks on this hook: Signocore\Slate\site_branding (priority 10).

signocore_slate_top_header

action since 1.0.0

Fires to output the desktop top header row.

Theme callbacks on this hook: Signocore\Slate\top_header (priority 10).

WooCommerce

Filters the closing markup of the product details wrapper in product archives.

Parameter Type Description
$markup string The closing wrapper markup. Default </div>.

Returns string The filtered value.

Filters the opening markup of the product details wrapper in product archives.

Parameter Type Description
$markup string The opening wrapper markup.

Returns string The filtered value.

Filters the product short description shown in product archives.

Renamed from archive_woocommerce_short_description in 2.0.0.

Parameter Type Description
$excerpt string The product excerpt.

Returns string The filtered value.

Filters whether the main product archive loop gets the infinite scroll data attributes.

Parameter Type Description
$enabled bool Whether to add the archive attributes. Default true.
$loop array The current WooCommerce loop properties.

Returns bool The filtered value.

Filters the HTML attributes added to the product archive list for infinite scroll.

Parameter Type Description
$attributes string The attribute string. Default empty string.

Returns string The filtered value.

Filters whether the product archive top row is shown when none of its theme options are enabled.

Parameter Type Description
$show bool Whether to show the top row. Default false.

Returns bool The filtered value.

Filters the block content of the shop page shown as the product archive description.

Renamed from slate_theme_shop_content in 2.0.0.

Parameter Type Description
$content string The shop page post content.

Returns string The filtered value.

WooCommerce add-ons

Filters whether AJAX add to cart is enabled for the current single product.

Renamed from slate_enable_single_ajax_add_to_cart in 2.0.0.

Parameter Type Description
$enabled bool Whether AJAX add to cart is enabled. Default true.
$product WC_Product The current product.

Returns bool The filtered value.

Fires after a product is added to the cart through the single product AJAX add to cart.

Renamed from slate_single_product_ajax_added_to_cart in 2.0.0.

Parameter Type Description
$product_id int The ID of the product added to the cart.

Filters whether the sticky add to cart bar shows the add to cart form for a simple, external or subscription product.

When false, the bar shows the price and a button that links to the product form instead.

Renamed from signocore-slate-sticky-show-single-add-to-cart in 2.0.0.

Parameter Type Description
$show bool Whether to output the add to cart form. Default true.
$product WC_Product The current product.

Returns bool The filtered value.

Filters the widget class used to show the active product filters above the shop loop.

Renamed from slate_woo_active_filters_widget in 2.0.0.

Parameter Type Description
$widget_class string Widget class name passed to the_widget(). Default WC_Widget_Layered_Nav_Filters.

Returns string The filtered value.

Fires in the custom shop archive template, between the WooCommerce main content wrapper hooks, to output the shop page content.

Theme callbacks on this hook: Signocore\Slate\Features\slate_custom_shop_page (priority 10).

Renamed from slate_woocommerce_shop_page_content in 2.0.0.

Stuck on something the docs don't cover?

Questions go straight to the developer who builds the plugins. Replies usually within a day.

September Sale

€20 off Signocore SEO Pro

Pay €49 instead of €69, one time for unlimited sites. code SEP20