WP_Taxonomy::add_rewrite_rules

Advertisement

Summery Summery

Adds the necessary rewrite rules for the taxonomy.

Syntax Syntax

WP_Taxonomy::add_rewrite_rules()

Source Source

File: wp-includes/class-wp-taxonomy.php

					$args['meta_box_sanitize_cb'] = 'taxonomy_meta_box_sanitize_cb_input';
					break;
			}
		}

		// Default taxonomy term.
		if ( ! empty( $args['default_term'] ) ) {
			if ( ! is_array( $args['default_term'] ) ) {
				$args['default_term'] = array( 'name' => $args['default_term'] );
			}
			$args['default_term'] = wp_parse_args(
				$args['default_term'],
				array(
					'name'        => '',
					'slug'        => '',
					'description' => '',
				)
			);
		}

Advertisement

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.

Advertisement

Leave a Reply