Tag Info

New answers tagged

0

This is not a question to be answered here as none of us knows the answer to this question. Only the core developers might have this answer :-) Wordpress uses PHP to run its server side actions, so nothing forbids you running custom php scripts or functions that is not included in core. Core only creates a platform for you to achieve what you need, creates ...


1

Because on the minimum version required it isn't always available since the SPL can be disabled on PHP 5.2 and below. The majority of installs running WordPress have it, but not all, and it's the same reason autoloaders and Iterators aren't used. Moving to v5.3 as a minimum PHP would fix this however as the SPL cannot be disabled in 5.3+, but until that ...


3

If there were a special WordPress core standard, for such function calls, one would expect it to be used in this file: /wp-includes/default-filters.php the mother of hook setup calls. Skimming through that file, we see that there is at most a single comment line per function call: // Slugs add_filter( 'pre_term_slug', 'sanitize_title' ); Some calls ...


1

You don't document function calls, but function definitions. Because the function could be called unlimited times, right? So it makes no sense to document functions when they are called. If you document the call, then probably because you do some things you want to remember later - or let other following developers know. But normally, I would say, that ...



Top 50 recent answers are included