Inventory_Presser_Additional_Listings_Pages::add_rewrite_slugs( array $slugs )

add_rewrite_slugs


Description Description

Adds rewrite slugs


Top ↑

Parameters Parameters

$slugs

(array) (Required)


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/class-additional-listings-pages.php

	function add_rewrite_slugs( $slugs )
	{
		foreach( self::additional_listings_pages_array() as $additional_listing )
		{
			//is this rule valid?
			if( ! self::is_valid_rule( $additional_listing ) )
			{
				continue;
			}
			$slugs[] = $additional_listing['url_path'];
		}
		return $slugs;
	}