The diameter of a binary tree (sometimes called the width) is the number of nodes on the longest path between two leaves in the binary tree.
The diameter can occur through:
<?php | |
require_once __DIR__ . '/UpDevTools/bootstrap.php'; |
/** | |
* Do a hard unregister of an object's callback for the specified event name | |
* and priority level. | |
* | |
* In WordPress, the callback key (or unique ID) is generated using the hash ID of | |
* the object concatenated with the method name. In the event that you do not have | |
* the object itself, then we use this hard approach to first first the callback | |
* function and then do the remove. | |
* | |
* This process works for both filter and action events. |
<?php | |
// ..code removed for brevity. | |
add_filter( 'genesis_attr_entry', 'change_creative_work_itemtype', 15 ); | |
/** | |
* Change the CreativeWork itemtype. | |
* | |
* @since 1.0.0 | |
* |
add_filter('genesis_post_title_output', 'lunarwp_remove_page_title', 10, 1); | |
/** | |
* Remove the Page Title section from all pages | |
* | |
* @since 1.0.0 | |
* | |
* @return string Page Title or empty sting (for pages) | |
*/ | |
function lunarwp_remove_page_title($output) | |
{ |
add_action( 'loop_start', 'remove_post_byline' ); | |
/** | |
* Remove the post metadata byline from the HTML markup. | |
* | |
* @since 1.0.0 | |
* | |
* @return void | |
*/ | |
function remove_post_byline() { | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); |
add_action( 'genesis_entry_header', 'remove_post_byline', 9999 ); | |
/** | |
* Remove the post metadata byline from the HTML markup. | |
* | |
* @since 1.0.0 | |
* | |
* @return void | |
*/ | |
function remove_post_byline() { | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); |
<?php | |
/** | |
* Custom Taxonomy functionality | |
* | |
* @package KnowTheCode\TeamBios\Custom | |
* @since 1.0.0 | |
* @author hellofromTonya | |
* @link https://knowthecode.io | |
* @license GNU General Public License 2.0+ | |
*/ |
<?php | |
/** | |
* Portfolio Details Metabox Handler | |
* | |
* @package KnowTheCode\Portfolio\Metabox | |
* @since 1.0.0 | |
* @author hellofromTonya | |
* @link https://KnowTheCode.io | |
* @license GPL-2.0+ | |
*/ |