• Welcome to Tux Reports: Where Penguins Fly. We hope you find the topics varied, interesting, and worthy of your time. Please become a member and join in the discussions.

WordPress Development: Eating and Digesting Spaghetti

PHP development eventually requires the programmer to understand and use Composer. XenWord 3 does not use the package dependency manager; however, the newest XenWord version is being developed to use the Composer autoload feature. The current working alpha relies on namespaces. At this point...
LPH
Views
2K
Reaction score
1
Comments
1
General
Members may have noticed a few changes were made last night and this morning to the categories pages of XenForo. In particular, five recent articles from WordPress which match the category are now shown. This is accomplished with a callback to a PHP file which uses the wp_get_recent_posts...
LPH
Views
2K
Reaction score
2
Technology
The get_posts function has many arguments which allow a developer to pull from the meta table. <?php $args = array( 'posts_per_page' => 5, 'offset' => 0, 'category' => '', 'category_name' => '', 'orderby' => 'date', 'order' =>...
LPH
Updated
Views
2K
Technology
The setup_postdata() function confused me for a bit. The examples on the WordPress Codex page didn't seem to explain why using setup_postdata() could be useful. Specifically, there is no difference in the var_dump using $post in example 1. After running a few different tests, it became clear...
Purpose The bootstrap file for WordPress plugins can be done in many different ways. I recently changed the PHP file but am always on the lookout for a better way. Considerations Proper Hook No God Class (Uh oh.) No hooks in constructors Use Namespaces Don't mix types (Interfaces, Classes)...
The top of all bootstrap files for WordPress plugins begin with an important comment block. Below is a sample of a multiline comment block which describes the plugin and provides name, URI, Author, Author URI, and Version. Create a file named fabulous.php and place it in the wp-content/plugins...

Blog information

Author
LPH
Blog entries
6
Last update

More entries from LPH

More blogs from LPH

Top