while seeing word press core code in depth i came across a file which has many empty functions for eg :

 * @ignore
function apply_filters() {}

i realy dont know what is the use of declaring empty function in php..

i found this in wp-admin/list-scripts.php on line 34 - 37

and in wp-include/plugin.php on line 163 - 207 the same function is re declared with some works in it

In total i have 2 questions

What is the use of declaring an empty function in php

Why wordpress din’t show any Fatal error: as the same function is already declared. ?

Read more here: Use of declaring empty function in php


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , ,

Wordpress related questions and answers: