Inventory_Presser_Additional_Listings_Pages::add_rewrite_slugs( array $slugs )
Adds rewrite slugs
On This Page
Parameters Parameters
- $slugs
-
(array) (Required)
Return Return
(array)
Source Source
File: includes/class-additional-listings-pages.php
public function add_rewrite_slugs( $slugs ) { foreach ( self::additional_listings_pages_array() as $additional_listing ) { // is this rule valid and active? if ( ! self::is_valid_rule( $additional_listing ) || ! self::is_active_rule( $additional_listing ) ) { continue; } $slugs[] = $additional_listing['url_path']; } return $slugs; }
Expand full source codeCollapse full source codeView on Github