This file contains 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
$vendor_version = '%jquery_version%'; | |
$replace_jquery = ! is_admin() && ! is_customize_preview(); | |
$header_scripts_handler = 'vendor-header-scripts'; | |
if ( $replace_jquery ) { | |
wp_deregister_script( 'jquery' ); // Deregister WP core jQuery | |
wp_deregister_script( 'jquery-core' ); // Deregister WP jQuery | |
wp_deregister_script( 'jquery-migrate' ); // Deregister WP jQuery Migrate | |
// Replace built-in jQuery with the latest version from node_modules | |
$header_scripts_handler = 'jquery'; |
This file contains 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 hide_personal_options() { | |
$screen = get_current_screen()->id; | |
if ($screen === 'user-edit') { | |
echo "<style type='text/css'> | |
#your-profile h2:first-of-type, | |
#your-profile h2:first-of-type + table { | |
display: none; | |
} | |
</style>"; | |
} |
This file contains 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
.modal { | |
padding: 1rem 2rem; | |
max-width: 50%; | |
border-radius: 5px; | |
background-color: rgba(255, 255, 255, 0.95); | |
color: #333; | |
font-family: sans-serif; | |
line-height: 1.5; | |
} | |
.modal a { color: #bf0222; } |