Clanbite General Since 1.6.3

apply_filters( 'clanbite_component_args', array<string, mixed> $args, string $slug, array<string, mixed> $def )

Filters the arguments a component renders with, for every component.

Runs before the provider's callback: add context (surface, object_type…), or change an argument for one place.

Filter PHP

Parameters

$args (array<string, mixed>)

Arguments passed by the caller.

$slug (string)

Component slug.

$def (array<string, mixed>)

Component definition.

Example

add_filter( 'clanbite_component_args', function ( $args, $slug, $def ) {
	// Change $args here.
	return $args;
}, 10, 3 );

Defined in inc/components.php

Changelog

VersionDescription
1.6.3Introduced.