Create plugin with hook
-
I strive with the Simple Tagging plugin, and tries to experiment with making things appear in my post form. So – I created this tiny plugin, which only function is to write something to my post-form page, but nothing happens.
My code:
<?php /* Plugin Name: my plugin test Plugin URI: Description: blablabla Version: 1.3 Author: Siv Author URI: */ add_filter('simple_edit_form', 'srh_print_dill'); function srh_print_dill(){ print "this should be displayed below my post form"; } ?>I found a do_action(‘simple_edit_form’,”) in my edit_post.php file (in admin folder), but I really don’t understand what this means. When I read the codex all the examples are generic, and I’m not able to find an explanation of simple_edit_form nor do_action().
If anyone has a good idea I’ll be overlykkelig! (norwegian for very, very, very, ….., very happy)
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Create plugin with hook’ is closed to new replies.