View functions.php
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
/* | |
* Add our Custom Fields to simple products | |
*/ | |
function mytheme_woo_add_custom_fields() { | |
global $woocommerce, $post; | |
echo '<div class="options_group">'; | |
// Text Field |
View Restore original Post Data.php
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 | |
$the_query = new WP_Query( $args ); | |
if ( $the_query->have_posts() ) { | |
echo '<ul>'; | |
while ( $the_query->have_posts() ) { | |
$the_query->the_post(); | |
echo '<li>' . get_the_title() . '</li>'; | |
} | |
echo '</ul>'; | |
} else { |
View git-pull-all
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
#!/usr/bin/env bash | |
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done | |
git fetch --all | |
git pull --all |
View install-wp-plugins.php
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 | |
/** | |
* Plugin Name: Activate required plugins. | |
* Description: Programmatically install and activate plugins based on a runtime config. | |
* Version: 1.0 | |
* Author: Hans Schuijff | |
* Author URI: http://dewitteprins.nl | |
* License: MIT | |
* License URI: http://www.opensource.org/licenses/mit-license.php | |
*/ |
View core-functionality-custom-remove-filter.php
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 | |
/** | |
* Unhook callbacks from WordPress filter or action hooks. | |
* including the removal of closures and methods of anonymous objects. | |
* | |
* @package DeWittePrins\CoreFunctionality | |
* @author Hans Schuijff | |
* @since 1.0.0 | |
* @license GPL-2.0+ | |
**/ |
View add-course-module-to-lesson-admin.php
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 | |
/** | |
* Makes the module column in the admin's lesson list sortable. | |
* | |
* @package DeWittePrins\CoreFunctionality\SenseiLMS | |
* @since 1.7.1 | |
* @author Hans Schuijff | |
* @link https://dewitteprins.nl | |
* @license GNU-2.0+ | |
*/ |
View force-display-logo-setting.php
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 | |
/** | |
* Forces the display_logo setting to "no" | |
* on all Mollie gateways | |
* | |
* @package DeWittePrins\CoreFunctionality; | |
* @since 1.7.12 | |
* @author Hans Schuijff | |
* @link https://dewitteprins.nl | |
* @license GNU-2.0+ |
View disable-display-logo.php
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 | |
/** | |
* Set the display_logo option to "no" for all mollie payment options | |
* | |
* @package DeWittePrins\CoreFunctionality; | |
* @since 1.7.12 | |
* @author Hans Schuijff | |
* @link https://dewitteprins.nl | |
* @license GNU-2.0+ | |
*/ |
View essence-pro-title-functions-changes-for-the-event-calendar-page-titles.php
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 | |
/** | |
* Relocates page titles and adds header image wrapper. | |
* | |
* @since 1.0.0 | |
*/ | |
function essence_page_hero_header() { | |
add_action( 'genesis_before_header', 'essence_header_hero_start' ); | |
add_action( 'genesis_after_header', 'essence_header_title_wrap', 90 ); |
NewerOlder