-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf9b4c7
commit 5106700
Showing
3 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Hooks | ||
|
||
- [Actions](#actions) | ||
- [Filters](#filters) | ||
|
||
## Actions | ||
|
||
*This project does not contain any WordPress actions.* | ||
|
||
## Filters | ||
|
||
### `some_condition_filter` | ||
|
||
*Test issue 18.* | ||
|
||
**Arguments** | ||
|
||
Argument | Type | Description | ||
-------- | ---- | ----------- | ||
`$some_condition` | `bool` | Condition. | ||
`$some_other_parameter` | `mixed` | Other parameter. | ||
|
||
Source: [tests/issue-18/test-issue-18.php](test-issue-18.php), [line 11](test-issue-18.php#L11-L19) | ||
|
||
|
||
<p align="center"><a href="https://github.com/pronamic/wp-documentor"><img src="https://cdn.jsdelivr.net/gh/pronamic/wp-documentor@main/logos/pronamic-wp-documentor.svgo-min.svg" alt="Pronamic WordPress Documentor" width="32" height="32"></a><br><em>Generated by <a href="https://github.com/pronamic/wp-documentor">Pronamic WordPress Documentor</a> <code>1.2.0</code></em><p> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
/** | ||
* Test for issue 18. | ||
* | ||
* @author Pronamic <[email protected]> | ||
* @copyright 2005-2022 Pronamic | ||
* @license GPL-3.0-or-later | ||
* @package Pronamic\WordPress\Documentor | ||
*/ | ||
|
||
/** | ||
* Test issue 18. | ||
* | ||
* @link https://github.com/pronamic/wp-documentor/issues/17 | ||
* @param bool $some_condition Condition. | ||
* @param mixed $some_other_parameter Other parameter. | ||
* @return bool | ||
*/ | ||
if ( apply_filters( 'some_condition_filter', $some_condition, $some_other_parameter ) ) { | ||
do_something(); | ||
} |