This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref | |
| <?php | |
| /** | |
| * WordPress Query Comprehensive Reference | |
| * Compiled by luetkemj - luetkemj.github.io | |
| * | |
| * CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
| * Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| require_once 'bar.php'; | |
| require_once 'foo.php'; | |
| $foo = new Foo; | |
| $bar = new Bar( $foo ); | |
| $foo->set_foo( 123.4 ); | |
| $foo->set_bar( 123.4 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function my_msls_blog_collection_get( $objects ) { | |
| $objects = array(); | |
| $blogs = array( 1 => 'Override English', 2 => 'Override Deutsch', ); | |
| foreach ( $blogs as $id => $description ) { | |
| $details = get_blog_details( $id ); | |
| if ( is_object( $details ) ) { | |
| $objects[$id] = new MslsBlog( $details, $description ); | |
| } |
NewerOlder