I hereby claim:
- I am JeffMatson on github.
- I am jeffmatson (https://keybase.io/jeffmatson) on keybase.
- I have a public key whose fingerprint is 0815 B9B2 8DEA 5A85 3A61 0725 AA41 7FC1 3399 25AE
To claim this, I am signing this object:
<?php | |
add_action( 'shutdown', function(){ | |
foreach( $GLOBALS['wp_actions'] as $action => $count ) | |
printf( '%s (%d) <br/>' . PHP_EOL, $action, $count ); | |
}); |
function build_admin_colors() { | |
global $_wp_admin_css_colors; | |
$current_color_scheme = get_user_meta(get_current_user_id(), 'admin_color', true); | |
$colors = array_merge( | |
$_wp_admin_css_colors[$current_color_scheme]->colors, | |
$_wp_admin_css_colors[$current_color_scheme]->icon_colors | |
); | |
return $colors; | |
} |
add_action( 'wp_print_scripts', 'nuke_cart_fragments', 100 ); | |
function nuke_cart_fragments() { | |
wp_dequeue_script( 'wc-cart-fragments' ); | |
return true; | |
} |
<?php | |
if ( ! defined( 'ABSPATH' ) ) { exit; } | |
function nb_autoload( $classname ) { | |
$class = str_replace( '\\', DIRECTORY_SEPARATOR, str_replace( '_', '-', strtolower($classname) ) ); | |
$file_path = WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . $class . '.php'; | |
if ( file_exists( $file_path ) ) { | |
require_once $file_path; | |
} | |
} | |
spl_autoload_register('nb_autoload'); |
array( | |
'name' => 'username', | |
'label' => 'Username', | |
'type' => 'field_select', | |
'default_value' => array( | |
'aliases' => array( 'user' ) | |
) | |
) |
add_filter( 'gform_webapi_authentication_required_post_form_submissions', '__return_true' ); |
$list_array = array( | |
array( | |
'Column 1' => 'row1col1', | |
'Column 2' => 'row1col2', | |
), | |
array( | |
'Column 1' => 'row2col1', | |
'Column 2' => 'row2col2', | |
), | |
); |
$field_map = array( | |
array( | |
'name' => 'email', | |
'label' => ‘Email Address’, | |
'required' => true, | |
'field_type' => array( 'email' ) | |
), | |
array( | |
'name' => ‘name’, | |
'label' => ‘Your Name', |
$search_criteria = array( | |
'status' => 'active', | |
'field_filters' => array( | |
array( | |
'key' => 'my_entry_value', | |
'operator' => 'IN', // or 'NOT IN' | |
'value' => array( 'Second Choice', 'Third Choice' ), | |
), | |
) | |
); |
I hereby claim:
To claim this, I am signing this object: