Back to Top

How to add Custom Field in Quick Edit menu WordPress?

Add Custom Field in QuickEdit Option Wordpress

In previous article, I have explained about To Create custom field in Woocommerce Products Admin Panel and today I continue with article with to add quick edit custom box in WordPress.

In this article, You will get an idea to add custom box into quick edit option provided into WordPress.

So, let’s understand the code. First of all will add action hook ‘quick_edit_custom_box’ which is used to add HTML field into quick edit section.

Next, action hook is about to write javascript code which add the script into footer and append, remove and set a value of the field into quick edit custom box.

QuickEdit means inline update code and field value so for that we have to call ajax request which will update information into a database without refreshing a page. so, here you can see, I have called ajax function.

Must Read: WordPress : To add custom post type into RSS

This is PHP function which is used for responding an ajax request and update value of the field into a database.

Here is the action hook used for ajax request and will store information of field into a database.

‘post_row_actions’ action hook is used to expand quick edit box with adding a custom field into that box.

Read about: Introduction to Transient API in WordPress

Next, is to save data into WordPress and below action hook is used to store the custom field value into the database when passing data into a post.

Storing of data is done. So that’s it our code is also done. You can use this code to add the custom field into Quick Edit option provided by WordPress.

Hope this helps someone else out.As always, thanks for reading. Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.

Comments (1)

  1. thanks for this post …

    i am looking for this way to edit custom field data in wordpress admin panel but i don’t think can do it …

Leave a Reply

Your email address will not be published. Required fields are marked *

Most Popular Posts

PHP 7 new Features at a Glance

Posted on 2 years ago

Bhumi

The Readers’ Poll – August 2012

Posted on 5 years ago

Bhumi

What is Final keyword in PHP

Posted on 6 years ago

Bhumi

The Reader’s Poll – June 2015

Posted on 2 years ago

Bhumi

The Reader’s Poll – August 2014

Posted on 3 years ago

Bhumi

The Reader’s Poll – June 2014

Posted on 3 years ago

Bhumi

The Readers’ Poll – May 2014

Posted on 4 years ago

Bhumi

The Readers’ Poll – August 2013

Posted on 4 years ago

Bhumi