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
<!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"var:preset|spacing|small"}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} --> | |
<div class="wp-block-group alignwide"><!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|small"}},"layout":{"type":"constrained"}} --> | |
<div class="wp-block-group"><!-- wp:heading {"level":3,"fontSize":"base"} --> | |
<h3 class="wp-block-heading has-base-font-size"><strong>Features that scale with you</strong></h3> | |
<!-- /wp:heading --> | |
<!-- wp:paragraph {"fontSize":"x-small"} --> | |
<p class="has-x-small-font-size">We build professional-grade features that grow<br>with you as you scale your business.</p> | |
<!-- /wp:paragraph --></div> | |
<!-- /wp:group --> |
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( 'wpforms_email_headers', function ( $headers, $emails ) { | |
// APPLY THE BCC TO THIS FORM ID ONLY. | |
// CHANGE THE ID TO THE FORM YOU NEED. OR REMOVE THE WHOLE IF BLOCK IF NEEDED FOR ALL FORMS. | |
if ( 384 !== $emails->form_data['id'] ) { | |
return $headers; | |
} | |
// CHANGE THIS EMAIL ADDRESS TO YOURS: |
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('wp_mail_smtp_custom_options', function( $phpmailer ) { | |
$phpmailer->SMTPOptions = array( | |
'ssl' => array( | |
'verify_peer' => false, | |
'verify_peer_name' => false, | |
'allow_self_signed' => true | |
) | |
); |
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
gh issue list -s all -L 500 --json number | \ | |
jq -r '.[] | .number' | \ | |
xargs -I% gh issue transfer % https://github.com/<destination repo> |
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( 'wpforms_frontend_load', function( $load, $form_data, $var ) { | |
// Comment these lines if you need to hide a certain form only. | |
if ( wp_is_mobile() ) { | |
return false; | |
} | |
// Or check certain form only. Uncomment. | |
/* |
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( | |
'wpforms_frontend_output_success', | |
static function ( $form_data, $fields, $entry_id ) { | |
unset( | |
$_GET['wpforms_return'], | |
$_POST['wpforms']['id'] | |
); |
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( 'wpforms_entry_save_data', static function ( $fields, $entry, $form_data ) { | |
$value1 = ''; | |
$value2 = ''; | |
// These are field IDs to take data from, and to merge into. | |
$field1_id = 1; | |
$field2_id = 2; |
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 | |
// Register the smart tag. | |
add_filter( 'wpforms_smart_tags', static function( $tags ) { | |
// Key is the tag, value is the tag name. | |
$tags['current_time'] = 'Current Date/Time'; | |
return $tags; | |
} ); |
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( 'wpforms_currencies', function( $currencies ) { | |
$currencies['RON'] = array( | |
'name' => __( 'Romanian Leu', 'wpforms' ), | |
'symbol' => ' lei', | |
'symbol_pos' => 'right', | |
'thousands_separator' => ',', | |
'decimal_separator' => '.', | |
'decimals' => 2, |
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 | |
// phpcs:ignoreFile | |
define( 'EXPOSED_DOMAIN', 'example.sharedwithexpose.com' ); | |
// Load only if we are running under Expose. | |
if ( empty( $_SERVER['HTTP_X_ORIGINAL_HOST'] ) || $_SERVER['HTTP_X_ORIGINAL_HOST'] !== EXPOSED_DOMAIN ) { | |
return; | |
} |
NewerOlder