Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wordpress init hook

1
2
3
4
5
6
7
add_action( 'init', 'process_post' );
 
function process_post() {
     if( isset( $_POST['unique_hidden_field'] ) ) {
          // process $_POST data here
     }
}
Source by developer.wordpress.org #
 
PREVIOUS NEXT
Tagged: #wordpress #init #hook
ADD COMMENT
Topic
Name
3+9 =