Widget_Abstract::filter_args_to_context( $alterations = array(),  $arguments = array() )

{@inheritDoc}


Source

File: src/Tribe/Widget/Widget_Abstract.php

	public function filter_args_to_context( array $alterations = [], array $arguments = [] ) {
		/**
		 * Applies a filter to arguments before they get turned into context.
		 *
		 * @since 4.13.0
		 *
		 * @param array<string,mixed>  $alterations Current set of alterations for the context.
		 * @param array<string,mixed>  $arguments   Current set of arguments in the widget.
		 * @param static               $instance    The widget instance we are dealing with.
		 */
		$alterations = apply_filters( 'tribe_widget_args_to_context', $alterations, $arguments, $this );

		$widget_slug = static::get_widget_slug();

		/**
		 * Applies a filter to arguments before they get turned into context based on the widget slug of the widget.
		 *
		 * @since 4.13.0
		 *
		 * @param array<string,mixed>  $alterations Current set of alterations for the context.
		 * @param array<string,mixed>  $arguments   Current set of arguments in the widget.
		 * @param static               $instance    The widget instance we are dealing with.
		 */
		return apply_filters( "tribe_widget_{$widget_slug}_args_to_context", $alterations, $arguments, $this );
	}