4 by mistake added wrong function name with add_action.
source | link

Use wp_die(); insted of die(); in function.

add_action( 'wp_ajax_nopriv_example_ajax_request', 'load_more_blog''example_ajax_request' );
add_action( 'wp_ajax_example_ajax_request', 'load_more_blog''example_ajax_request' );
function example_ajax_request() {

    // Your code goes here.        

    wp_die();
}

Use wp_die(); insted of die(); in function.

add_action( 'wp_ajax_nopriv_example_ajax_request', 'load_more_blog' );
add_action( 'wp_ajax_example_ajax_request', 'load_more_blog' );
function example_ajax_request() {

    // Your code goes here.        

    wp_die();
}

Use wp_die(); insted of die(); in function.

add_action( 'wp_ajax_nopriv_example_ajax_request', 'example_ajax_request' );
add_action( 'wp_ajax_example_ajax_request', 'example_ajax_request' );
function example_ajax_request() {

    // Your code goes here.        

    wp_die();
}
3 deleted 2 characters in body
source | link

Use wp_die();wp_die(); insted of die();die(); in function.

add_action( 'wp_ajax_nopriv_example_ajax_request', 'load_more_blog' );
add_action( 'wp_ajax_example_ajax_request', 'load_more_blog' );
function example_ajax_request()
  { 

    /// Your code goes here.
         

    wp_die();
}

Use wp_die(); insted of die(); in function.

add_action( 'wp_ajax_nopriv_example_ajax_request', 'load_more_blog' );
add_action( 'wp_ajax_example_ajax_request', 'load_more_blog' );
function example_ajax_request()
 {
    /// Your code goes here.
 

    wp_die();
}

Use wp_die(); insted of die(); in function.

add_action( 'wp_ajax_nopriv_example_ajax_request', 'load_more_blog' );
add_action( 'wp_ajax_example_ajax_request', 'load_more_blog' );
function example_ajax_request() { 

    // Your code goes here.        

    wp_die();
}
2 added 36 characters in body
source | link

Use wp_die(); insted of die(); in function.

add_action( 'wp_ajax_nopriv_example_ajax_request', 'load_more_blog' ); add_action( 'wp_ajax_example_ajax_request', 'load_more_blog' ); function example_ajax_request() { /// Your code goes here.

add_action( 'wp_ajax_nopriv_example_ajax_request', 'load_more_blog' );
add_action( 'wp_ajax_example_ajax_request', 'load_more_blog' );
function example_ajax_request()
{
    /// Your code goes here.


    wp_die();
}

}

Use wp_die(); insted of die(); in function.

add_action( 'wp_ajax_nopriv_example_ajax_request', 'load_more_blog' ); add_action( 'wp_ajax_example_ajax_request', 'load_more_blog' ); function example_ajax_request() { /// Your code goes here.

wp_die();

}

Use wp_die(); insted of die(); in function.

add_action( 'wp_ajax_nopriv_example_ajax_request', 'load_more_blog' );
add_action( 'wp_ajax_example_ajax_request', 'load_more_blog' );
function example_ajax_request()
{
    /// Your code goes here.


    wp_die();
}
1
source | link