edit_form_advanced action
-
I’m working on a plugin and wanted to add some form elements to the advanced section of the form. To test, I wrote the following plugin. What surprised me was that the section appeared (after clicking the Advanced button) in the top section of the post editor and NOT in the advanced section. Is there a way to get it to be in the advanced section?
The second question I have is how do I get the post id since it’s not passed in for the edit_form_advanced section (at least according to the codex)?
<?php
/*
Plugin Name: Test
Plugin URI: https://localhost/
Description: edit_form_advanced test
Version: 0.1
Author: Bill Smith
Author URI: https://localhost
*/add_action('edit_form_advanced', 'mytest_show_form');
function mytest_show_form()
{
?>
<fieldset id="mytest">
<legend>edit_form_advanced test</legend>
</fieldset><?php
}
?>
- The topic ‘edit_form_advanced action’ is closed to new replies.