Clanbite General Since 1.5.0

apply_filters( 'clanbite_toast_positions', array<string, string> $positions )

Filters the screen positions a toast can appear in (the choices in Settings → Notifications → Popups).

A position you add needs a matching .clanbite-toast-stack--{slug} rule in your CSS. top-right must stay in the list: it is the fallback.

Filter PHP

Parameters

$positions (array<string, string>)

Position slug => translated label.

Example

add_filter( 'clanbite_toast_positions', function ( $positions ) {
	// Change $positions here.
	return $positions;
}, 10, 1 );

Defined in inc/toasts.php

Changelog

VersionDescription
1.5.0Introduced.