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( 'gform_webapi_authentication_required_post_form_submissions', '__return_true' ); |
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
| array( | |
| 'name' => 'username', | |
| 'label' => 'Username', | |
| 'type' => 'field_select', | |
| 'default_value' => array( | |
| 'aliases' => array( 'user' ) | |
| ) | |
| ) |
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 | |
| 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'); |
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_action( 'wp_print_scripts', 'nuke_cart_fragments', 100 ); | |
| function nuke_cart_fragments() { | |
| wp_dequeue_script( 'wc-cart-fragments' ); | |
| return true; | |
| } |
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
| 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; | |
| } |
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_action( 'shutdown', function(){ | |
| foreach( $GLOBALS['wp_actions'] as $action => $count ) | |
| printf( '%s (%d) <br/>' . PHP_EOL, $action, $count ); | |
| }); |
NewerOlder