Question
I'd like to move a post to the trash in the loop. Here's my code; function run_every_five_minutes() { global $post; $wp_query = new WP_Query(array('cat' => array(1), 'posts_per_page' => -1, 'date_query'=>array('after' => '2 hours ago', 'inclusive' ...
0
, , 2 hours 0 Answers 0 views

Question
Good day . So today i've updated my wordpress version to 5.3 and after that i started to see this error at the top of all my pages . Warning: Declaration of QuietSkin::feedback($string) should be compatible with WP_Upgrader_Skin::feedback($string, ...
0
3 hours 0 Answers 0 views

Question
I'm trying to create a contact form that lets users upload files. This is the PHP code I have: function ajax_contactform_action_callback() { $error = ''; $status = 'error'; if (empty($_POST['name']) || empty($_POST['email']) || empty($_POST['message'])) { $error = 'All fields ...
0
5 hours 0 Answers 3 views