convert_to_screen [ WordPress Function ]
convert_to_screen ( $hook_name )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Benzer Fonksiyonlar: convert_chars, convert_smilies, set_current_screen, get_current_screen, wp_convert_hr_to_bytes
Convert a screen string to a screen object
Source
<?php
function convert_to_screen( $hook_name ) {
if ( ! class_exists( 'WP_Screen' ) ) {
_doing_it_wrong( 'convert_to_screen(), add_meta_box()', __( "Likely direct inclusion of wp-admin/includes/template.php in order to use add_meta_box(). This is very wrong. Hook the add_meta_box() call into the add_meta_boxes action instead." ), '3.3' );
return (object) array( 'id' => '_invalid', 'base' => '_are_belong_to_us' );
}
return WP_Screen::get( $hook_name );
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- PHPXRef 0.7 : WordPress : Function Reference: convert_to_screen()
Function and Method Cross Reference. convert_to_screen(). Defined at: /wp- admin/includes/template.php -> line 1878. Referenced 11 times: ...
phpxref.ftwr.co.uk - convert_to_screen (WordPress Function) - WPSeek.com
WordPress lookup for convert_to_screen, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com - #19342 (Call to undefined function convert_to_screen when using ...
Looking at this line, it is trying to call the function convert_to_screen to convert the name of the screen that meta box should be displayed on, since it is passed as ...
core.trac.wordpress.org - convert_to_screen | A HitchHackers guide through WordPress
Feb 11, 2011 ... Source code. function convert_to_screen( $screen ) { $screen = str_replace( array('.php', '-new', '-add', '-network', '-user' ), '', $screen); ...
hitchhackerguide.com