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( 'gform_savecontinue_link_1', 'prefix_savecontinue_form_id_1', 10, 2 ); | |
/** | |
* Maybe remove the "save and continue" button from Gravity Form ID 1. | |
* Checks to see if the "save and continue" token is present-- | |
* if no, the button will render, otherwise not. | |
* | |
* @param string $save_button | |
* @param object $form |
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( 'enqueue_block_assets', 'rgc_editor_color_palette', 15 ); | |
/** | |
* Add custom colors to the site using wp_inline_style, attached to the wp-block-library stylesheet. | |
* Colors must be defined in your theme or functionality plugin. | |
*/ | |
function rgc_editor_color_palette() { | |
list( $colors, ) = (array) get_theme_support( 'editor-color-palette' ); | |
if ( ! $colors ) { |
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( 'enqueue_block_assets', 'rgc_editor_font_sizes', 15 ); | |
/** | |
* Add custom font sizes to the site using wp_inline_style, attached to the wp-block-library stylesheet. | |
* Editor font sizes must be defined in your theme. | |
*/ | |
function rgc_editor_font_sizes() { | |
list( $font_sizes, ) = (array) get_theme_support( 'editor-font-sizes' ); | |
if ( ! $font_sizes ) { |
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( 'scriptlesssocialsharing_networks', 'rgc_scriptless_networks' ); | |
/** | |
* Add Print Friendly to settings/allowed sharing buttons | |
* | |
* @param $networks | |
* | |
* @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
<?php | |
add_filter( 'display_featured_image_genesis_backstretch_variables', 'rgc_test_slider_filter' ); | |
/** | |
* Change the banner featured image to be a slidehow sitewide. | |
* | |
* @param array $variables | |
* @return array | |
*/ | |
function rgc_test_slider_filter( $variables ) { |
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 | |
// Completely remove the date and time from comments. | |
add_filter( 'genesis_show_comment_date', '__return_false' ); |
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( 'scriptlesssocialsharing_twitter_query_args', 'prefix_add_twitter_hashtag_scriptless' ); | |
/** | |
* Add a hashtag to every Twitter button on a site. | |
* Requires Scriptless Social Sharing 3.0.0 | |
* | |
* @param $query_args | |
* @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
<?php | |
add_filter( 'scriptlesssocialsharing_link_markup', 'prefix_modify_scriptless_link_markup', 10, 2 ); | |
/** | |
* Add SVG icons to Scriptless sharing buttons. | |
* | |
* @param $output | |
* | |
* @param $button | |
* |
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( 'kses_allowed_protocols', 'prefix_allow_messenger' ); | |
/** | |
* Add Facebook Messenger to the list of allowed URL protocols in WordPress. | |
* | |
* @param $protocols | |
* | |
* @return array | |
*/ |
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( 'scriptlesssocialsharing_pocket_url', 'prefix_add_pocket', 10, 3 ); | |
/** | |
* Create the URL for the Pocket share/save button. | |
* | |
* @param $url | |
* @param $button | |
* @param $attributes | |
* |
NewerOlder