apply_filters( 'riff_client_navigation', bool $on )

Filters whether a link on the site is followed without leaving the page, so what plays carries on. Only a block theme can: its template is the region that is swapped.

Parameters

$onbool
Whether it is on, from Settings › Riff. Default false.

More Information

A host turns it on for every site with add_filter( 'riff_client_navigation', '__return_true' ).

Usage

add_filter( 'riff_client_navigation', function ( $on ) {
	return $on;
} );

Source

return (bool) apply_filters( 'riff_client_navigation', rest_sanitize_boolean( get_option( self::OPTION, false ) ) );

Changelog

VersionDescription
6.5.0Its default is the Settings › Riff checkbox.
6.2.0Introduced.