Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Justin Fletcher

    (@justinticktock)

    arrh!

    after or that it was a typo in the options page initial call back. But anyway the form action needs to be changed as shown here for the admin_post_ hook to work…..

    <div class="wrap">
    				<?php $this->plugin_options_tabs( ); ?>
    				<!--...
    				<form method="post" action="options.php">
    				if there is a post_admin hook defined then have this next form element call not the one above
    				-->
    				<form method="post" action="<?php echo admin_url( 'admin-post.php' ); ?>">
    
    					<?php wp_nonce_field( 'update-options-nonce', 'update-options' ); ?>
    					<?php settings_fields( $tab ); ?>
    					<?php do_settings_sections( $tab ); ?>
    					<?php submit_button( ); ?>
    				</form>
    			</div>
    Thread Starter Justin Fletcher

    (@justinticktock)

    marked as resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘post_admin_ hook and the settings api’ is closed to new replies.