Unverified

Name

Remover Javascript sem uso

About

Remove o JavaScript não utilizado

Language

PHP

Rating

Voted: 0 by 0 user(s)

Codevault

Bacteria_Codevault

Scroll down to see more snippets from this codevault.

Wordpress Compatability

The author has indicated that this snippet is compatable up to wordpress version: 6.4

Code Snippet Plugin Sync

Free & Pro

Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.

Pro Only (Coming Soon)

You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.

History

Last modified:

09/09/2024

Important Note

This snippet has the following status:

Unverified

This snippet has not been verified, use with caution and at your own risk. See details provided by author in sidebar and click below to find out more.

Remover Javascript sem uso

 
                    
1function wp_remove_scripts() {
2// check if user is admina
3 if (current_user_can( 'update_core' )) {
4 return;
5 }
6 else {
7 // Check for the page you want to target
8 if ( is_page() ) {
9 // Remove Scripts
10 wp_dequeue_style( 'jquery-ui-core' );
11 }
12 }
13}
14add_action( 'wp_enqueue_scripts', 'wp_remove_scripts', 99 );

0

Related Snippets

Please see some snippets below related to this snippet..

Performance

AI Verified

1

Explicit Fixed Width and Height Images

Added: 1 year ago

Last Updated: 1 year ago

test

Performance

AI Verified

0

Stop Lazy Load

Added: 1 year ago

Last Updated: 1 year ago

Performance

AI Verified

0

Add Custom Image Sizes

Added: 1 year ago

Last Updated: 1 year ago

This snippet allows you to define custom image sizes that can be used throughout your WordPress site.

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

Performance

Unverified

0

Remover Javascript sem uso

Added: 1 week ago

Last Updated: 1 week ago

Remove o JavaScript não utilizado