This file contains 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
<snippet> | |
<content><![CDATA[ | |
global \$wp_query; | |
\$query = array( | |
$1 | |
); | |
\$args = array_merge(\$wp_query->query_vars, \$query); | |
\$posts = query_posts(\$args); | |
]]></content> |
This file contains 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 | |
/** | |
* Creates an admin edit post link. Can be a custom link to something like an admin page, | |
* ACF options page, or the default post_edit_link | |
* | |
* @param $page type|string/int For a string, a php page like nav-menus.php, or the slug of an options page | |
* which will result in admin.php?page= being put before the slug. | |
* In either case wp-admin/ is prepended. | |
* A post ID can also be supplied for a default edit_post_link |
This file contains 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
/** | |
* Used to print a list of shows in feed format | |
* | |
* <code> | |
* $args = array( | |
* 'count' => 6, // int | |
* 'exclude_featured' => false, | |
* 'exclude_past' => true, // bool | |
* 'exclude_future' => false, // bool | |
* 'genre' => false, // show genres to include |
This file contains 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
/** | |
* Prints classes for a custom menu. Prints added class and any passed in class | |
* | |
* @param string $item Slug for menu item | |
* @param string $classes Extra classes to print | |
* @uses mbt_show_listing_menu_is_current() | |
* | |
*/ |
This file contains 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
/** | |
* Generates markup for the show highlight tile, used on the homepage and | |
* show single pages. | |
* | |
* @uses mbt_show_single_date | |
* @uses mbt_get_acf_image | |
* @uses mbt_get_show_badges | |
* @uses mbt_get_show_venue_link | |
* @uses mbt_get_show_dates | |
* @uses mbt_get_show_presenter |
This file contains 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
apigen generate -s wp-content/themes/mount-baker-theatre/includes -s wp-content/plugins/mount-baker-theatre/includes/ -d docs --todo --deprecated --internal --template-theme=bootstrap --title='Mount Baker Theatre' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 | |
/** | |
* @file | |
* Drupal site-specific configuration file. | |
* | |
* IMPORTANT NOTE: | |
* This file may have been set to read-only by the Drupal installation | |
* program. If you make changes to this file, be sure to protect it again | |
* after making your modifications. Failure to remove write permissions |
This file contains 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 d7_add_acf_to_json_api_v2($object, $field_name, $request){ | |
if ( function_exists('get_fields') ) { | |
return get_fields($object['id']); | |
} | |
} | |
if ( is_plugin_active('rest-api/plugin.php') ) { | |
add_filter('rest_api_init', function(){ |
OlderNewer