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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
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
add_action( 'admin_init', 'beans_child_test_fields' ); | |
/** | |
* Test the Fields API for post meta. | |
* | |
* @since 1.5.0 | |
* | |
* @return void | |
*/ | |
function beans_child_test_fields() { | |
$beans_uri = get_template_directory_uri(); |
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 | |
/** | |
* Test if we need to encode each action before storing it into the container. | |
* | |
* This test will run 1,000,000 cycles using json_encode and take a snapshot of the memory usage and total execution time. | |
* Then it'll run another million cycles by storing the array into the container, without encoding it. | |
* | |
* We'll print out the results. | |
*/ |
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 | |
/** | |
* This line of code removes the >> HTML markup, meaning this HTML will not be sent out to the browser: | |
* | |
* <i class="uk-icon-angle-double-right uk-margin-small-left" data-markup-id="beans_next_icon[_more_link]"></i> | |
*/ | |
beans_remove_markup('beans_next_icon[_more_link]'); | |
/** |
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 | |
/** | |
* Term Hierarchical Search | |
* | |
* These methods provide a utility interface to find a meta value | |
* within the term's hierarchy. It walks up the hierarchy starting | |
* at the given term, i.e. walks to its parent -> grandparent -> N levels. | |
* | |
* It's performant as it grabs the records it needs out of the database | |
* with one SQL query, i.e. to avoid multiple trips to gather each level's |
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 | |
/** | |
* Get the specified metadata value for the term or from | |
* one of it's parent terms. | |
* | |
* @since 1.0.0 | |
* | |
* @param WP_Term $term Term object | |
* @param string $meta_key The meta key to retrieve. |
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 | |
/** | |
* Get the specified metadata value for the term or from | |
* one of it's parent terms. | |
* | |
* @since 1.0.0 | |
* | |
* @param WP_Term $term Term object | |
* @param string $meta_key The meta key to retrieve. |
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 | |
/** | |
* Asset versioning | |
* | |
* @package Better Asset Versioning | |
* @since 1.0.0 | |
* @author hellofromTonya | |
* @link https://KnowTheCode.io | |
* @license GNU-2.0+ | |
*/ |