I hereby claim:
- I am unculturedswine on github.
- I am unculturedswine (https://keybase.io/unculturedswine) on keybase.
- I have a public key ASDO9UOgWgTk9EUxhXky9MOlTnVe9ORa37hkIFXA_HFFBAo
To claim this, I am signing this object:
<?php | |
add_action('frm_after_create_entry', 'sendToPardotFormHandler', 30, 2); | |
function sendToPardotFormHandler($entry_id, $form_id){ | |
if($form_id == 3){ //replace 3 with the id of the form | |
$args = array(); | |
if(isset($_POST['item_meta'][XX])) //change XX to the field ID | |
$args['firstName'] = $_POST['item_meta'][XX]; //change 'firstName' to the named parameter to send | |
if(isset($_POST['item_meta'][XX])) //change XX to the field ID | |
$args['lastName'] = $_POST['item_meta'][XX]; //change 'lastName' to whatever you need | |
if(isset($_POST['item_meta'][XX])) //change XX to the field ID |
add_action( 'template_redirect', 'wc_custom_redirect_after_purchase' ); | |
function wc_custom_redirect_after_purchase() { | |
global $wp; | |
if ( is_checkout() && ! empty( $wp->query_vars['order-received'] ) ) { | |
wp_redirect( '#' ); | |
exit; | |
} | |
} |
<?php | |
add_image_size( '480', 480, 9999, FALSE ); | |
add_image_size( '768', 768, 9999, FALSE ); | |
add_image_size( '1440', 1440, 9999, FALSE ); | |
add_image_size( '1920', 1920, 9999, FALSE ); | |
add_image_size( '2560', 2560, 9999, FALSE ); |
I hereby claim:
To claim this, I am signing this object:
.selector { | |
height: 90vh; | |
height: calc(var(--vh, 1vh) * 100); | |
} |
ssl_ciphers EECDH+AESGCM:EDH+AESGCM:EECDH:EDH:!MD5:!RC4:!LOW:!MEDIUM:!CAMELLIA:!ECDSA:!DES:!DSS:!3DES:!NULL; |
<?php | |
$menuLocations = get_nav_menu_locations(); // Retrieves Menus | |
$menuID = $menuLocations['primary']; // Gets the Primary Menu (Change for your Menu Name) | |
$primaryNav = wp_get_nav_menu_items($menuID); // Sets up the Foreach Variable | |
echo '<select>'; | |
foreach ( $primaryNav as $navItem ) { | |
$link = $navItem->url; | |
$title = $navItem->title; | |
echo '<option id="'.$link.'">'.$title.'</option>'; | |
} |
# clone the repository | |
git clone https://github.com/Neilpang/acme.sh.git /opt/acme.sh -q | |
# create conf directory | |
mkdir -p /etc/letsencrypt/{config,live,renewal} | |
# install acme.sh | |
cd /opt/acme.sh | |
./acme.sh --install \ | |
--home /etc/letsencrypt \ |
<?php | |
// Define path and URL to the ACF plugin. | |
// Including in a theme uses get_stylesheet_directory on line 4, but for a plugin you need a different call. | |
// This is the correct way to call the ACF plugin inside a plugin | |
define( 'MY_ACF_PATH', plugin_dir_path( __FILE__ ) . '/includes/acf/' ); | |
define( 'MY_ACF_URL', plugin_dir_url( __FILE__ ) . '/includes/acf/' ); | |
// Include the ACF plugin. | |
include_once( MY_ACF_PATH . 'acf.php' ); |