Opening booking resources editor in new tab
function wcv_add_target_blank_for_button() { ?>Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
function wcv_add_target_blank_for_button() { ?>Continue reading
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
add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow; if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable support for comments and trackbacks in…Continue reading
// Disable the Plugin and Theme Editor if ( ! defined( ‘DISALLOW_FILE_EDIT’ ) ) { define( ‘DISALLOW_FILE_EDIT’, true ); }Continue reading
add_filter(‘wp_sitemaps_enabled’, ‘__return_false’);Continue reading
add_filter( ‘wp_lazy_loading_enabled’, ‘__return_false’ );Continue reading