This repository has been archived by the owner on Jan 2, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 29
webcomic_permalink_tokens
Michael Sisk edited this page Apr 10, 2018
·
1 revision
Alter comic permalink tokens.
apply_filters( 'webcomic_permalink_tokens', array $tokens, string $url, WP_Post $post )
This filter allows hooks to provide specific token => value pairs for rewriting comic permalinks.
Token | Value | Example |
---|---|---|
%author% | The comic author's username. | username |
%day% | The publish day of the comic. | 01 |
%hour% | The publish hour of the comic. | 16 |
%minute% | The publish minute of the comic. | 52 |
%monthnum% | The publish month of the comic. | 05 |
%post_id% | The comic's post ID. | 9 |
%second% | The publish second of the comic. | 22 |
%year% | The publish year of the comic. | 2099 |
Token | Value | Example |
---|---|---|
%webcomic*_character% | The comic's characters. | character-slug |
%webcomic*_storyline% | The comic's storylines. | storyline-slug |
The *
in these tokens is a placeholder for the collection ID number, like
webcomic1_character
or webcomic42_storyline
.
The list of token => value pairs.
The URL being rewritten.
The post the URL is being rewritten for.