just updating some docblocks
This commit is contained in:
@ -11,6 +11,7 @@ class Rewrites {
|
||||
/**
|
||||
* Class constructor.
|
||||
*
|
||||
* @package PluginNamespace\Front\Rewrites
|
||||
* @since 1.0.0
|
||||
*
|
||||
* @return void
|
||||
@ -25,6 +26,7 @@ class Rewrites {
|
||||
/**
|
||||
* Generate new rewrite rules and flush the cached values.
|
||||
*
|
||||
* @package PluginNamespace\Front\Rewrites
|
||||
* @since 1.0.0
|
||||
*
|
||||
* @return void
|
||||
@ -50,9 +52,10 @@ class Rewrites {
|
||||
* Build the array of post IDs that have a slug for the URL
|
||||
* along with what custom query variable to use.
|
||||
*
|
||||
* @package PluginNamespace\Front\Rewrites
|
||||
* @since 1.0.0
|
||||
*
|
||||
* @return array
|
||||
* @return array<int, array<string, string>>
|
||||
*/
|
||||
public function build_rewrite_urls(): array {
|
||||
$pages = array();
|
||||
@ -82,11 +85,12 @@ class Rewrites {
|
||||
* Append custom query variables to the list WordPress maintinas
|
||||
* with each request.
|
||||
*
|
||||
* @package PluginNamespace\Front\Rewrites
|
||||
* @since 1.0.0
|
||||
*
|
||||
* @param array $variable
|
||||
* @param array<int, string> $vars
|
||||
*
|
||||
* @return array
|
||||
* @return array<int, string>
|
||||
*/
|
||||
public function custom_query_vars( array $vars ): array {
|
||||
$vars[] = 'foo';
|
||||
|
Reference in New Issue
Block a user