wp_deregister_style [ WordPress Function ]
wp_deregister_style ( $handle )
| Parameters: |
|
| See: |
|
| Defined at: |
|
Benzer Fonksiyonlar: wp_register_style, wp_deregister_script, wp_register_script, wp_dequeue_style, wp_register
Remove a registered CSS file.
Source
<?php
function wp_deregister_style( $handle ) {
global $wp_styles;
if ( ! is_a( $wp_styles, 'WP_Styles' ) ) {
if ( ! did_action( 'init' ) )
_doing_it_wrong( __FUNCTION__, sprintf( __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ),
'<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code>init</code>' ), '3.3' );
$wp_styles = new WP_Styles();
}
$wp_styles->remove( $handle );
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/wp deregister style « WordPress Codex
Function Reference/wp deregister style ... <?php wp_deregister_style( $handle ) ?> ... wp_deregister_style() is located in wp-includes/functions.wp-styles.php .
codex.wordpress.org - How to disable scripts and styles
Aug 6, 2009 ... add_action( 'wp_print_styles', 'my_deregister_styles', 100 ); function my_deregister_styles() { wp_deregister_style( 'wp-pagenavi' ); } ...
justintadlock.com - wp_deregister_style (WordPress Function) - WPSeek.com
WordPress lookup for wp_deregister_style, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com - wp_deregister_style
since: r79. Functions. Description | Functions. wp_deregister_style (line 69) ... void wp_deregister_style (string $handle). string $handle: Name of the stylesheet .
phpdoc.ftwr.co.uk