[wp-hackers] Can PHPdoc recognize custom filters?

Filippo Pisano filippo.pisano at gmail.com
Mon May 13 12:31:52 UTC 2013


Is it possible to get PHPDoc to recognize WP filters declarations? I think
that one thing like

/**
 * @filter_name my_filter
 * @filter_param string $my_param
 * @filter_args int 2
 *
**/
$filtered = apply_filters("my_filter", $arg1, $arg2); // this is the first
time my filter appears in code

would make sense.
I don't know if it is possible (I've always used PHPDoc for standard code)
and I'd like to know if
anyone has an alternative.




Filippo Pisano
cel: 3291821355 / skype: filippopisano


More information about the wp-hackers mailing list