79401651

Date: 2025-01-31 02:37:44
Score: 1
Natty:
Report link

You can try wrapping the function, put all of the filters / actions there For example

function my_init() 
{
    add_filter("asdasd", static function() {
        echo 'asdf';
    });
}
my_init();

Then on phpunit you can declare to collect coverage from my_init

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ruslan