Global State During an Admin Post

When using admin-post.php, no loaded menus on an admin-post.php request is standard wordpress behavior. Standard practise to redirect after processing done on post action hook is to use: wp_redirect( admin_url( ‘admin.php?page=YOUR_PAGE’ ) ); When using admin-post.php, wordpress will include wp-admin/includes/wp-admin.php instead of wp-admin/wp-admin.php ( WordPress Admin Bootstrap ) to skip some setup. One of the … Read more

Modify action buttons for custom post type

If you look here https://developer.wordpress.org/reference/hooks/post_row_actions/, the second argument for the post_row_actions filter is a post object, so you should be able to do : function remove_quick_edit($actions, $post) { $post_id = $post->ID; $post_type = $post->post_type; if($_GET[‘post_type’] == ‘form-enquiry’) { unset($actions[‘inline hide-if-no-js’]); } $actions[‘reply’] = ‘<a href=”#”>Reply</a>’; //return $actions; echo ‘<pre>’; print_r($actions); echo ‘</pre>’; } add_filter(‘post_row_actions’, ‘remove_quick_edit’, … Read more

WordPress on AWS with ELB

Finally I managed to solve this issue. The problem i had was on the ELB with the sticky sessions. I just enabled it and set a time of 3600 and now wordpress in login in users. A question remains with the real ELB power. If you do this sticky session I found some documentation that … Read more