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 | |
/** | |
* Runtime configuration for the FAQ custom post type. | |
* | |
* @package KnowTheCode\Module\FAQ\Custom | |
* @since 1.0.0 | |
* @author hellofromTonya | |
* @link https://KnowTheCode.io | |
* @license GNU-2.0+ | |
*/ |
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 | |
/** | |
* Adds the CSS from the WooCommerce Module options. | |
* | |
* @package KnowTheCode\Developers\WooCommerce | |
* @since 1.0.0 | |
* @author hellofromTonya | |
* @link https://knowthecode.io | |
* @license GNU General Public License 2.0+ | |
*/ |
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 | |
/*************************** | |
* Ternary Examples | |
**************************/ | |
/** | |
* Determine whether the given value is array accessible. | |
* | |
* @since 1.0.0 |
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_filter( 'genesis_register_widget_area_defaults', 'agency_pro_change_widget_title_to_h2', 99 ); | |
/** | |
* Change the Widget Title HTML tag element from a <h4> to <h2>. | |
* | |
* @since 1.0.0 | |
* | |
* @param array $defaults Array of default parameters | |
* | |
* @return array | |
*/ |
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
/** | |
* When you are building your code (i.e. in development), you should turn on | |
* all error reporting in wp-config.php. Why? Because you want to find all | |
* warnings, notices, errors, etc. before you ship it to your client. Even | |
* the minor errors are telling you something is wrong in the code. | |
* Suppressing them does not fix the problem. It merely quiets them down. | |
* | |
* @link https://codex.wordpress.org/Debugging_in_WordPress | |
*/ |
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_filter( 'genesis_post_meta', __NAMESPACE__ . '\filter_genesis_footer_post_meta' ); | |
/** | |
* Filter the Genesis Footer Entry Post Meta | |
* to add the post terms for our custom taxonomy to it. | |
* | |
* @since 1.0.0 | |
* | |
* @param string $post_meta | |
* | |
* @return string |
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
$args = array( | |
'label' => __( 'Departments', 'teambios' ), | |
'hierarchical' => true, | |
); | |
register_taxonomy( 'department', 'team-bios', $args ); |
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 | |
/** | |
* Custom Taxonomy functionality | |
* | |
* @package KnowTheCode\TeamBios\Custom | |
* @since 1.0.0 | |
* @author hellofromTonya | |
* @link https://knowthecode.io | |
* @license GNU General Public License 2.0+ | |
*/ |
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 | |
/** | |
* Posts Page (Home) template | |
* | |
* @package KnowTheCode | |
* @since 1.0.0 | |
* @author hellofromTonya | |
* @link https://KnowTheCode.io | |
* @license GNU-2.0+ | |
*/ |