‘init’ Hook
-
I am developing a plugin. Where should I place below codes in this case?
add_action( 'init', 'process_post' ); function process_post() { if( isset( $_POST['unique_hidden_field'] ) ) { // process $_POST data here } }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘‘init’ Hook’ is closed to new replies.