I’m rewording this because, as it’s correctly been pointed out, the original post was “woefully inadequate.” I made a plugin which has tabbed views for the various settings. It’s...
  • May 9, 2022
  • 0 Comments
It’s probably more of a PHP question, but I would like to know if there are any differences in using global $post; echo $post->ID; when compared to echo $GLOBALS['post']->ID;...
  • May 8, 2022
  • 0 Comments
I am using phpcs to help with making sure I write nice, valid WP theme code but am coming across the following issue regarding escaping before output. If I...
  • May 6, 2022
  • 0 Comments
I have an issue with custom widgets and WordPress Coding Standards. When you create a custom widget, your class should have a “widget” method that will display the widget....
  • May 5, 2022
  • 0 Comments
IT Nursery
Reading the WordPress PHP Documentation Standards, I can’t see anywhere that mentions how to document a function call such as add_action( 'foo', 'bar' ); Should I be documenting function...
  • May 2, 2022
  • 0 Comments
IT Nursery
When developing themes and plugins it is sometimes neccesary to add some functionality to some hook using conditional statements. Example: function my_custom_function() { if( is_home()) { <---what should the...
  • April 25, 2022
  • 0 Comments