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.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Most Popular Posts

Getting Started with CodeIgniter

Posted on 12 years ago

Bhumi

How to Add Tag in WordPress

Posted on 12 years ago

Bhumi

How to Export data using YUI DataTable

Posted on 8 years ago

Bhumi

To Swap Database Row in PHP

Posted on 12 years ago

Bhumi