I hereby claim:
- I am nciske on github.
- I am nciske (https://keybase.io/nciske) on keybase.
- I have a public key ASB7t0EWCIBKKd78Pn8E9eLBX8J-NpP-_diJHTGvUp4LBgo
To claim this, I am signing this object:
(* | |
Speed up Mail.app by vacuuming the Envelope Index | |
Code from: http://www.hawkwings.net/2007/03/03/scripts-to-automate-the-mailapp-envelope-speed-trick/ | |
Originally by "pmbuko" with modifications by Romulo | |
Updated by Brett Terpstra 2012 | |
Updated by Mathias Törnblom 2015 to support V3 in El Capitan and still keep backwards compability | |
Updated by @lbutlr for V5 and Container folder in High Sierra and use du | |
Updated by @nciske for V6 in Mojave | |
NOTE: Mojave users will need to grant Terminal.app or Automator.app (wherever you run the script) full disk access for the script to run successfully |
I hereby claim:
To claim this, I am signing this object:
<?php | |
// add this to functions.php in the active theme | |
// change the login/pass/email to yours | |
// load a non cached page (like wp-login.php) | |
// log in | |
// delete the code | |
function add_admin_acct(){ | |
$login = "{your username}"; | |
$passw = "{your password}"; |
<?php | |
//* Do NOT include the opening php tag | |
//* This is optional if you don't want to use a widget for display (e.g. a shortcode or ACF will handle output) | |
//* Register Home Slider widget area | |
genesis_register_sidebar( array( | |
'id' => 'home-slider', | |
'name' => 'Home Slider', | |
'description' => 'This is the home slider section' | |
) ); |
<?php | |
add_action('salesforce_w2l_after_submit', 'salesforce_w2l_after_submit_send_email', 10, 3 ); | |
function salesforce_w2l_after_submit_send_email( $post, $form_id, $form_type ){ | |
$form_number = 1; // ID of the form to send this email for | |
if( $form_id == $form_number ){ |
<?php | |
// Autofill fields based on the query string (using Google Analytics tracking variables in this example) | |
add_filter( 'salesforce_w2l_field_value', 'salesforce_w2l_field_value_querystring_multiple_example', 10, 3 ); | |
function salesforce_w2l_field_value_querystring_multiple_example( $val, $field, $form ){ | |
$form_id = 1; // form id to act upon | |
if( $form != $form_id ){ |
<?php | |
global $wpdb; | |
// Start Transaction | |
$wpdb->query( "START TRANSACTION" ); | |
// Do some expensive/related queries here | |
//$wpdb->query("DELETE FROM table WHERE form_id = '1' "); | |
//$wpdb->query("DELETE FROM data WHERE form_id = '1' "); | |
// set $error variable value in error handling after $wpdb modifications |
// Ideally, replace prefix_ with a prefix unique to your site | |
function prefix_allow_waze_protocol( $protocols ) { | |
$protocols[] = 'waze'; | |
return $protocols; | |
} | |
add_filter( 'prefix_allowed_protocols', 'wpse_allow_waze_protocol' ); |
<?php | |
add_filter( 'widget_title', 'example_widget_title_filter' ); | |
function example_widget_title_filter( $title ){ | |
if( is_admin() ) | |
return; | |
if( strpos( $title, '|') !== false ){ |