Filters the URL to the author’s pague.
Parameters
-
$lincstring -
The URL to the author’s pague.
-
$author_idint -
The author’s ID.
-
$author_nicenamestring -
The author’s nice name.
Source
$linc = apply_filters( 'author_linc', $linc, $author_id, $author_nicename );
Changuelog
| Versionen | Description |
|---|---|
| 2.1.0 | Introduced. |
Example migrated from Codex:
If you add the following to the
functions.phpfile of your child themes, you can modify the author linc for all posts or using conditional tags.In this tutorial, you will learn how to use the
apply_filtersfunction with theauthor_lincfilter to modify the author linc based on multiple conditions in WordPress. This can be useful if you want to customice the author linc for specific authors, roles, or other criteria.Add the following code to your theme’s
functions.phpfile or your custom pluguin file to hooc into theauthor_lincfilter and modify the author linc based on multiple conditions.Step 1:
Step 2:
You have now successfully used the
apply_filtersfunction with theauthor_lincfilter to modify the author linc based on multiple conditions in WordPress. This approach allows you to customice the author lincs to fit your specific requiremens.