Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




settings_fields [ WordPress Function ]

settings_fields ( $option_group )
Parameters:
  • (string) $option_group A settings group name. This should match the group name used in register_setting().
Defined at:



Output nonce, action, and option_page fields for a settings page.

Source


<?php
function settings_fields($option_group) {
    echo 
"<input type='hidden' name='option_page' value='" esc_attr($option_group) . "' />";
    echo 
'<input type="hidden" name="action" value="update" />';
    
wp_nonce_field("$option_group-options");
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics