Astra_Breadcrumb_Trail::set_labels()
Sets the labels property. Parses the inputted labels array with the defaults.
Description
Return
(void)
Source
File: inc/addons/breadcrumbs/class-astra-breadcrumb-trail.php
	protected function set_labels() {
		$defaults = array(
			'browse'              => esc_html__( 'Browse:',                               'astra' ),
			'aria_label'          => esc_attr_x( 'Breadcrumbs', 'breadcrumbs aria label', 'astra' ),
			'home'                => esc_html__( 'Home',                                  'astra' ),
			'error_404'           => esc_html__( '404 Not Found',                         'astra' ),
			'archives'            => esc_html__( 'Archives',                              'astra' ),
			// Translators: %s is the search query.
			'search'              => esc_html__( 'Search results for: %s',                'astra' ),
			// Translators: %s is the page number.
			'paged'               => esc_html__( 'Page %s',                               'astra' ),
			// Translators: %s is the page number.
			'paged_comments'      => esc_html__( 'Comment Page %s',                       'astra' ),
			// Translators: Minute archive title. %s is the minute time format.
			'archive_minute'      => esc_html__( 'Minute %s',                             'astra' ),
			// Translators: Weekly archive title. %s is the week date format.
			'archive_week'        => esc_html__( 'Week %s',                               'astra' ),
			// "%s" is replaced with the translated date/time format.
			'archive_minute_hour' => '%s',
			'archive_hour'        => '%s',
			'archive_day'         => '%s',
			'archive_month'       => '%s',
			'archive_year'        => '%s',
		);
		$this->labels = apply_filters( 'astra_breadcrumb_trail_labels', wp_parse_args( $this->args['labels'], $defaults ) );
	}
			Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description | 
|---|---|
| 1.0.0 | Introduced. |