change wp_login url and redirect users at the same time
change wp_login url and redirect users at the same time
change wp_login url and redirect users at the same time
“You must be logged in to comment” but I am already logged in
Why does my callback function not work with this custom filter hook?
Comments invisible after moving WordPress to new server, while commenting still works
Can comments by a logged-in user be displayed at the top?
WordPress comments not appearing in blog posts, likely because of Redux template. Could I fix this with a plugin that adds a comment form as a block? [closed]
For all simple operations prior to comment submission use the action pre_comment_on_post. Like this: add_action( ‘pre_comment_on_post’, function() { if ( !empty( $_POST[‘url’] ) ) { wp_die( ‘Go away!’, ‘Nope’, [ ‘response’ => 403, ‘exit’ => true ] ); } });
You do not need an existing $args variable here, you can define your own arguments and they will override the defaults. See the get_comment_reply_link() docs for the defaults. Instead, you can pass the arguments you want directly. comment_reply_link( array( ‘reply_text’ => __( ‘Répondre ‘, ‘autourdesanimaux’ ), ‘depth’ => $depth, ‘max_depth’ => get_option( ‘thread_comments_depth’ ) ) … Read more
Display complete comment section via post ID
The desired results mentioned in the question were achieved by using the wp_schedule_event() function, now: The user always sees the “awaiting moderation” message without experiencing any delay. The API requests happen without the users experiencing delay, they happen asynchronously when anyone visits the page and the time interval given as argument to the wp_schedule_event() has … Read more