Hi, I want to know where $action is defined and need to fix bug.
It's not working after ugrade php version to php 7.4.
This action should be work when user logged out too.
if ( is_user_logged_in() ) {
// If no action is registered, return a Bad Request response.
if ( ! has_action( "wp_ajax_{$action}" ) ) {
wp_die( '0', 400 );
}
/**
* Fires authenticated Ajax actions for logged-in users.
*
* The dynamic portion of the hook name, `$action`, refers
* to the name of the Ajax action callback being fired.
*
* @since 2.1.0
*/
do_action( "wp_ajax_{$action}" );
} else {
// If no action is registered, return a Bad Request response.
if ( ! has_action( "wp_ajax_nopriv_{$action}" ) ) {
wp_die( '0', 400 );
}
/**
* Fires non-authenticated Ajax actions for logged-out users.
*
* The dynamic portion of the hook name, `$action`, refers
* to the name of the Ajax action callback being fired.
*
* @since 2.8.0
*/
do_action( "wp_ajax_nopriv_{$action}" );
}
Thank you
Hello, I can fix it because i have good debugging experience.
I have 5+ years experience in wordpress, php and laravel.
I hope you will hire me again.
Thank you
Hello there
I have seen the tiny print as you need someone to fix Wordpress bug
The requirement has been analyzed, but it's impossible to know the need in a method of communication. to know the right requirement and your thoughts for the system we'd like to possess several lines of communication to clear the doubts and supply you ways of solutions.
It's an honest place for work which we will communicate then making an honest deal.
So, I request you to OPEN the chat box and discuss it further for the project.
Thanks and Regards
Hey there,
I am interested in working for this project as I am a professional web developer having 9 years of working experience. Kindly share the details so that we can start working on this as soon as possible.
Regards,
Muhammad Salman S.