how to create form in admin side in wordpress

Posted: June 12, 2015 in Uncategorized
Tags: , , ,

This post is used to display form element in admin side and save that setting in option table…

add_action('admin_menu', 'register_funcset_ad_per_view_charge');

function register_funcset_ad_per_view_charge() {
register_setting( 'ad_per_view_group', 'view_charge');
add_submenu_page( 'options-general.php', 'set ad per view charge', 'set ad per view charge', 'manage_options', 'set_ad_per_view_charge_mslug', 'set_ad_per_view_charge_callback' );


function set_ad_per_view_charge_callback() {

//Please Add Form with action “options.php”
//Add inside form settings_fields( ‘ad_per_view_group’ );
//Add inside form do_settings_sections( ‘ad_per_view_group’ );
//Add inside form submit_button();
//End Form



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s