RIP
Tutorial
Tags
Topics
Examples
eBooks
Tutorial by Examples
Processing $_POST request data
add_action('init', 'process_post_data'); function process_post_data() { if( isset( $_POST ) ) { // process $_POST data here } }
Processing $_GET request data
add_action('init', 'process_get_data'); function process_get_data() { if( isset( $_GET ) ) { // process $_GET data here } }
Registering a custom post type
add_action( 'init', function() { register_post_type( 'event', array( 'public' => true, 'label' => 'Events' ); ); }); Registers a new custom post type with a label Events and a slug event
Page 1 of 1
1
Cookie
This website stores cookies on your computer.
We use cookies to enhance your experience on our website and deliver personalized content.
For more details on our cookie usage, please review our
Cookie Policy
and
Privacy Policy
Accept all Cookies
Leave this website