If this code is written, an error will occur. WordPress version 3.3 rc2 single
$screen = get_current_screen();
Above code create the error log below.
[11-Dec-2011 09:32:08] PHP Fatal error: Call to undefined function get_current_screen() in /virtual/example/public_html/wp/wp-content/themes/twentyeleven/functions.php on line 596
WordPress function get_current_screen was exists where wp-admin/includes/screen.php.
But not included where functions.php
$included_files = get_included_files(); var_dump($included_files);
theme/functions.php 134files included
not exists wp-admin/includes/screen.php
wp-admin/index.php 168files included
wp-admin/themes.php 167 files included
Please tell me How do I use this WordPress function?
- The topic ‘function get_current_screen Can it use by themes/functions.php?’ is closed to new replies.