available_permalink_structure_tags filter-hookWP 4.9.0

Filters the list of available permalink structure tags on the Permalinks settings page.

Usage

add_filter( 'available_permalink_structure_tags', 'wp_kama_available_permalink_structure_tags_filter' );

/**
 * Function for `available_permalink_structure_tags` filter-hook.
 * 
 * @param string[] $available_tags An array of key => value pairs of available permalink structure tags.
 *
 * @return string[]
 */
function wp_kama_available_permalink_structure_tags_filter( $available_tags ){

	// filter...
	return $available_tags;
}
$available_tags(string[])
An array of key => value pairs of available permalink structure tags.

Changelog

Since 4.9.0 Introduced.

Where the hook is called

In file: /wp-admin/options-permalink.php
available_permalink_structure_tags
wp-admin/options-permalink.php 303
$available_tags = apply_filters( 'available_permalink_structure_tags', $available_tags );

Where the hook is used in WordPress

Usage not found.