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 | |
/** | |
* DevKit related tweaks | |
* https://dplugins.com/downloads/devkit/ | |
* | |
* Must be included in functions.php | |
* | |
* @package GenerateChild | |
*/ | |
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 | |
/** | |
* Remove this opening PHP tag when adding to your theme's functions.php | |
* It's included here for proper syntax highlighting in the gist. | |
*/ | |
/** | |
* Displays an grid of the GeneratePress global color palette with color blocks. | |
* Built to use on website style guides with Beaver Builder but can be used anywhere. | |
* Global Colors must be set in the GP Customiser |
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 | |
add_filter( 'gform_entry_is_spam', 'filter_gform_entry_is_spam_urls_and_emails', 11, 3 ); | |
function filter_gform_entry_is_spam_urls_and_emails( $is_spam, $form, $entry ) { | |
if ( $is_spam ) { | |
return $is_spam; | |
} | |
$field_types_to_check = array( | |
'hidden', |
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( 'display_post_states', function( $post_states, $post ) { | |
if ( get_post_meta( $post->ID, '_fl_builder_enabled', true ) ) { | |
$draft = get_post_meta( $post->ID, '_fl_builder_draft', true ); | |
$live = get_post_meta( $post->ID, '_fl_builder_data', true ); | |
if ( '' !== $draft && $draft != $live ) { | |
$post_states['bb_draft'] = 'Unpublished Changes'; | |
} | |
} |
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
geo $wpumbrella_ips { | |
default 0; | |
2001:41d0:306:1702::/64 1; | |
141.95.192.2 1; | |
} |
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 | |
/** | |
* Plugin Name: GridPane Fortress - UABB Gravity Forms Styler Override | |
* Description: This must use plugin overrides the Ultimate Addons forced filter to return false on fortress related pages. | |
* Version: 1.0 | |
* Author: Stoute Web Solutions | |
* Author URI: https://stoutewebsolutions.com/ | |
* Plugin URI: https://community.gridpane.com/t/ultimate-addons-for-beaver-builder-breaks-fortress-2fa-page-third-party/3333/80 | |
*/ |
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
// #popclip extension for ChatGPT | |
// name: ChatGPT Quick Actions | |
// icon: iconify:logos:openai-icon | |
// language: javascript | |
// module: true | |
// entitlements: [network] | |
// options: [{ | |
// identifier: apikey, label: API Key, type: string, | |
// description: 'Obtain API key from https://platform.openai.com/account/api-keys' | |
// }] |
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 // ignore this | |
// Copy the code below to your current theme's functions.php file. | |
// Uses: [get_term_image_url] or [get_term_image_url term_id="PROVIDE TERM ID HERE"] | |
add_shortcode( 'get_term_image_url', function( $atts ) { | |
$term_id = 0; | |
if ( isset( $atts['term_id'] ) && ! empty( $atts['term_id'] ) ) { | |
$term_id = $atts['term_id']; | |
} else { |
NewerOlder