Title

WP-Admin posts: show all available tags

description

Snippet to change the action of the url 'show most used tags' to instead show all available tags.

Published 2022-09-08

Modified 2022-09-08

content

				
					add_filter( 'get_terms_args', 'themeprefix_show_tags' );
 // Show Tags
 function themeprefix_show_tags ( $args ) {
 if ( defined( 'DOING_AJAX' ) && DOING_AJAX && isset( $_POST['action'] ) && $_POST['action'] === 'get-tagcloud' ) {
 unset( $args['number'] );
 $args['hide_empty'] = 0;
 }
 return $args;
 }