There are a lot of ways to create options page in WordPress. This is one of them:
1 2 3 4 5 6 7 8 9 10 11 |
function wpm_admin_menu() { add_options_page( 'Page Title', 'Menu Element Name', 8, //access right to settings page 'plugin_option_slug', 'wpm_option_page' ); } add_action( 'admin_menu', 'wpm_admin_menu' ); |
In callback function you can include a file with your options fields:
1 2 3 |
function wpm_option_page() { include 'options.php'; } |