OOP and Globals
<?php // initiate a global variable global $bundle_of_functionality; /** * A PHP Class that does things */ class Class_That_Does_Stuff { /** * A public class property * * (variables that float out…
The random technical musings of Justin Sternberg
<?php add_action( ‘all_admin_notices’, ‘testing_testing_testing’ ); function testing_testing_testing() { echo ‘<div id="message" class="updated">’; get_your_loop_no_trans(); get_your_loop(); // get_your_loop( true ); to not use transient echo ‘</div>’; } // BEFORE TRANSIENTS: function get_your_loop_no_trans() { $stuff…