[wp-hackers] screen_meta (again !)

andré renaut andre.renaut at gmail.com
Wed Nov 19 14:50:33 GMT 2008


Hello,

In my plugin, i have a page that can be called in 4 different ways.

So for each way, i have a different  $hook_suffix and/or $page_hook.
So for each way, i will have specific settings in usermeta.

In order to get only one setting in usermeta for this plugin page, is it
possible to do the following in screen_meta :


3222  function screen_meta
<http://127.0.0.1/xref273/_functions/screen_meta.html>($screen
<http://127.0.0.1/xref273/_variables/screen.html>) {
3223      global $wp_meta_boxes
<http://127.0.0.1/xref273/_variables/wp_meta_boxes.html>,
$_wp_contextual_help
<http://127.0.0.1/xref273/_variables/_wp_contextual_help.html>;
3224
3225      $screen <http://127.0.0.1/xref273/_variables/screen.html> =
str_replace <http://127.0.0.1/xref273/_functions/str_replace.html>('.php',
'', $screen <http://127.0.0.1/xref273/_variables/screen.html>);
3226      $screen <http://127.0.0.1/xref273/_variables/screen.html> =
str_replace <http://127.0.0.1/xref273/_functions/str_replace.html>('-new',
'', $screen <http://127.0.0.1/xref273/_variables/screen.html>);
3227      $screen <http://127.0.0.1/xref273/_variables/screen.html> =
str_replace <http://127.0.0.1/xref273/_functions/str_replace.html>('-add',
'', $screen <http://127.0.0.1/xref273/_variables/screen.html>);


*3228      $screen = apply_filters('screen_meta_screen', $screen);*


3229      $column_screens
<http://127.0.0.1/xref273/_variables/column_screens.html> =
get_column_headers
<http://127.0.0.1/xref273/_functions/get_column_headers.html>($screen
<http://127.0.0.1/xref273/_variables/screen.html>);
3230      $meta_screens
<http://127.0.0.1/xref273/_variables/meta_screens.html> =
array('index' => 'dashboard');
3231




Thank you !



-- 
Pensez à l'environnement avant d'imprimer ce message.
Please, think about the environment before printing this message.


More information about the wp-hackers mailing list