function remove_jquery_migrate($scripts) { if (!is_admin() && isset($scripts->registered[‘jquery’])) { $script = $scripts->registered[‘jquery’]; if ($script->deps) { // Check whether the script has any dependencies $script->deps = array_diff($script->deps, array(‘jquery-migrate’)); } } } add_action(‘wp_default_scripts’, ‘remove_jquery_migrate’);Continue reading
add_filter(‘gform_required_legend’, ‘__return_empty_string’);Continue reading
/** * Disable the Enter key for WPForms forms * * @link https://wpforms.com/developers/how-to-stop-the-enter-key-from-submitting-the-form/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_disable_enter_all_wpforms( ) { ?>Continue reading
/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading
add_action( ‘admin_head’, function() { // Add CSS code below. ?> div.postbox {border-radius: 8px;} <?php });Continue reading
add_action( ‘admin_head’, function() { // Add CSS code below. ?> .wpcode-header-top {display:none;} <?php });Continue reading