You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be a difference in the output between the two following occurrences:
<?php
/**
* My plugin filter assigned to a variable
*
* @param string $first_param This is the first argument
* @param string $second_param This is the second argument
*/
$some_variable = apply_filters( 'my_plugin_filter', $first_param, $second_param );
return $some_variable;
<?php
/**
* My plugin filter directly returned
*
* @param string $first_param This is the first argument
* @param string $second_param This is the second argument
*/
return apply_filters( 'my_plugin_filter', $first_param, $second_param );
In the first case, the full list of arguments is correctly parsed. In the second case, the list of arguments is empty.
The text was updated successfully, but these errors were encountered:
LuigiPulcini
changed the title
List of @param disregarded when apply_filters is returned instead of assigned to variable
List of arguments is empty when apply_filters is returned instead of assigned to variable
Jan 25, 2022
There seems to be a difference in the output between the two following occurrences:
In the first case, the full list of arguments is correctly parsed. In the second case, the list of arguments is empty.
The text was updated successfully, but these errors were encountered: