How to manage saving custom field from Quick edit and Post Save using save_post action hook without colliding each other?

I’s following Rachel Carden’s tutorial on creating Quick Edit and Bulk Edit, and grabbed her full work from her github repo. I managed doing everything fine and I made a checkbox instead of radio buttons for one of my field called “Featured” (meta_key: pre_featured). I made some changes to the concept though? As I’s using … Read more

How do I limit the status options for bulk/quick edit to only Published and Draft?

For my custom post type, I only want to have “Published” and “Draft” as the available options in the bulk edit and quick edit screens, i.e. I tried hooking on to the filter quick_edit_dropdown_pages_args but it doesn’t seem to get fired. I inserted a wp_die() in my callback but the admin screen lists all posts … Read more

Let user edit his own comment

can I allow user to edit his own comment (without, username, url, or mail) on front-end. For example simple form on custom worpdress page with his comment and submit button. Thank you all in advance! 1 Answer 1 You can add the following code in function.php $subscriber= get_role(‘subscriber’); $subscriber->add_cap(‘edit_comment’); Meanwhile edit_comment is only supported in … Read more

Why does this Quick Edit checkbox save the value only when unchecked?

I’m using the group of functions below to create a checkbox in the Quick Edit area of each post in the post listing at wp-admin/edit.php that saves a value to a custom field called headline_news. The issue is when the checkbox is checked, Quick Edit saves the value, but it won’t save again when I … Read more

Undefined variable post_id in custom quick edit coloumn

I am trying to add a custom coloumn to post quick edit and everything is almost working. Custom meta is saved and passed but if I click on quick edit the preview is blank. This is the error it gives me: Notice: Undefined variable: post_id in /home/etimueit/public_html/wp-content/themes/caru/functions.php on line 626 Here is my code. function … Read more

How to get and edit custom fields if in Quick Edit

I’ve got some custom fields that I would like a user to be able to edit in Quick Edit, I can manage the columns but I’m unable to edit them if Quick Edit is clicked current code with custom fields I’d like to be able to edit: /* custom columns */ add_filter(“manage_edit-programmes_columns”, “edit_columns” ); add_action(“manage_posts_custom_column”, … Read more

post_row_actions filter is not working while update post using quick edit

I have created two links using post_row_actions, it was displaying fine when page loads. But the links will get disappear after update post using quick-edit. Is it a bug from WordPress or did I miss something. My code will look like given below. add_filter(‘post_row_actions’, ‘add_new_link’, 10, 2); public function add_new_link($actions, $page_object) { $actions[‘new_action’] = ‘<a … Read more