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 | |
add_filter( 'supersideme_custom_buttons', 'prefix_add_woocommerce_quantity_total_button' ); | |
/** | |
* Add the WooCommerce quantity and total to a shopping cart button. | |
* | |
* @param $buttons | |
* | |
* @return mixed | |
*/ |
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
now located at: https://github.com/robincornett/leaven-responsive-menu |
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 | |
/** | |
* Build the string/markup for an SVG icon. | |
* | |
* @param $icon | |
* | |
* @param array $args | |
* | |
* @return string |
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 | |
// Disable the SuperSide Me settings page and customizer panel on child sites | |
if ( ! is_main_site() ) { | |
add_filter( 'supersideme_disable_customizer_panel', '__return_true' ); | |
add_filter( 'supersideme_disable_settings_page', '__return_true' ); | |
} | |
add_filter( 'supersideme_get_plugin_setting', 'prefix_supersideme_use_main_site_setting', 20 ); | |
/** |
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 | |
add_filter( 'supersideme_svg', 'leaven_prefer_theme_svg' ); | |
/** | |
* Tell SuperSide Me not to load any icons. | |
* @param $args | |
* | |
* @return mixed | |
*/ | |
function leaven_prefer_theme_svg( $args ) { |
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 | |
add_action( 'pre_amp_render_post', 'prefix_add_scriptless_amp' ); | |
/** | |
* Add Scriptless Social Sharing buttons to AMP posts | |
* (using the Automattic AMP plugin: https://wordpress.org/plugins/amp/). | |
*/ | |
function prefix_add_scriptless_amp() { | |
if ( ! function_exists( 'scriptlesssocialsharing_do_buttons' ) ) { | |
return; |
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 | |
add_action( 'init', 'leaven_load_bylines' ); | |
/** | |
* Maybe load Bylines files. | |
*/ | |
function leaven_load_bylines() { | |
if ( ! function_exists( 'the_bylines' ) ) { | |
return; | |
} |
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 | |
/** | |
* Updater class. | |
* | |
* @since 1.7.0 | |
* | |
* @package Envira_Gallery | |
* @author Envira Gallery Team | |
*/ | |
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 | |
add_filter( 'all_plugins', 'prefix_add_plugin_icon' ); | |
/** | |
* Add a custom plugin icon to the plugins update page (introduced in WP4.9). | |
* | |
* @param $plugins | |
* | |
* @return mixed | |
*/ |