Search
 
SCRIPT & CODE EXAMPLE
 

PHP

init hook wordpress

<?php
add_action('init', 'process_post');
function process_post()
{
	?>
	<script>alert('it works');</script>	<!-- page load time called -->
	<?php
}
?>
Comment

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
     }
}
Comment

PREVIOUS NEXT
Code Example
Php :: php get current url without filename 
Php :: laravel validation time hours minutes format 
Php :: how to open server in php 
Php :: superglobal php 
Php :: lravel redirect with error 
Php :: set charset of response php 
Php :: must be an instance of IlluminateHttpRequest 
Php :: how get file size in laravel 
Php :: laravel collection flatten 
Php :: php get hostname 
Php :: php unique random number 
Php :: laravel withtrashed 
Php :: max execution time exceeded php 
Php :: php artisan migrate --env=testing 
Php :: laravel session flash 2020 
Php :: how to delete image from aws using laravel 8 
Php :: wordpress check if current page is front page 
Php :: php get user ip address 
Php :: how to create controller in specific folder laravel 
Php :: get soft deleted data laravel 
Php :: php sql connection string 
Php :: php newline 
Php :: re migrate laravel 
Php :: python truncate file contents 
Php :: php bbcode tag dellete 
Php :: php default timezone 
Php :: sort array by key value in php 
Php :: phpstan ignore 
Php :: Object of class DateTime could not be converted to string 
Php :: mysql timestamp format php 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =