Blocks

Accordionarrow_forward

Show (and hide) content in a list

Bylinearrow_forward

Post author and post info

Factboxarrow_forward

Add facts in a wrapped box

FAQarrow_forward

List frequently asked questions in an accordion layout. SEO-friendly out of the box with schema support.

Featured Contentarrow_forward

Add featured content in a layout grid

Filesarrow_forward

Downloadable files

Galleryarrow_forward

Display multiple images in a rich gallery

Heroarrow_forward

Wow your readers with a great introduction to your articles

Iconarrow_forward

Displays an icon.

Image Carouselarrow_forward

Add multiple images in a carousel

Image Comparearrow_forward

Compare two images with a dividing slider

Infoboxarrow_forward

Add info in a wrapped box with a icon

Intro Heroarrow_forward

Example block description.

Lead paragrapharrow_forward

Adds a lead paragraph block

Link listarrow_forward

Display one or more links in a neatly organized list.

Logo Showcasearrow_forward

Show off logos in a neat grid

Mono Heroarrow_forward

Hero block with background image and one content block

Nav Menuarrow_forward

Displays a navigation menu.

Overflow Separatorarrow_forward

Position content independently of block borders

Post Dynamic Partarrow_forward

Displays a post label from a post type, meta, term, attribute, static text, or even a custom PHP filter.

Post Meta Textarrow_forward

Display post meta values

Product Heroarrow_forward

Wow your readers with a great introduction to your articles

Queryarrow_forward

Query loop block enhanced, with AJAX loading, filters and pagination.

Sectionarrow_forward

Wow your readers with a great introduction to your articles

Selling Pointsarrow_forward

Display useful information in a neat grid.

Simple Media & Textarrow_forward

Set media and words side-by-side for a richer layout.

Spacerarrow_forward

Add custom block spacing between blocks.

State Togglearrow_forward

Display a button for toggeling visibility for any element; menu, search field, filters etc.

Statisticsarrow_forward

Add a grid of statistics you want to show off

T2 Featured imagearrow_forward

Helper block for displaying featured images.

Tabsarrow_forward

Display related content in a compact tab

Testimonialsarrow_forward

Show off your proud customers

Wrapperarrow_forward

A wrapper block that only returns a wrapper element.

link Hooks

link blocks/src/blocks.php

Block arguments

apply_filters( 't2/block/args', array $args, string $block_name )
Parameter Type Description
$args array Block arguments.
$block_name string Block name.

Block arguments

apply_filters( 't2/block/$block_name/args', array $args )
Parameter Type Description
$args array Block arguments.

Available blocks

apply_filters( 't2/blocks/available', array $blocks )
Parameter Type Description
$blocks array Blocks.

link blocks/src/featured-content/index.php

Short-circuit the template-fetching logic if a value is returned.

apply_filters( 't2/block/featured_content/pre_get_template', string|null $override, array $attributes )
Parameter Type Description
$override string|null Template override to return. Default null.
$attributes array Block attributes passed to the block.

T2 Featured Content Post Classes.
This filter allows you to modify the classes applied to the featured content post.

apply_filters( 't2/block/featured_content/post_classes', array $classes, \WP_Post $post )
Parameter Type Description
$classes array Array of classes to apply to the post.
$post \WP_Post The post object.