Fields don’t reflect previous Quick Edit changes when clicking Quick Edit a second time

The solution was on the jquery side of things. The .on function needed to bubble upwards to be sure that it was always getting the most recent, ajax-added content. I only had to adjust the first line to be more aligned with jquery documentation for .on(). $( ‘#the-list’ ).on( ‘click’, ‘.editinline’, function(){ // revert Quick … Read more

Comments screen in backend, how to disable Quick Edit | Edit | History | Spam | for non admins

This is done filtering the *_row_actions. For the Comments screen (/wp-admin/edit-comments.php) this is the hook: add_filter( ‘comment_row_actions’, ‘comments_row_wpse_92313’, 15, 2 ); function comments_row_wpse_92313( $actions, $comment ) { if( !current_user_can( ‘delete_plugins’ ) ) unset( $actions[‘quickedit’], $actions[‘edit’], $actions[‘spam’] ); return $actions; } I cannot see a History option, maybe it’s included by some plugin (?). It’s a … Read more

Retrieving values of custom fields in Quick Edit mode

Ok, I got it, here’s the code: function ilc_quickedit_save($post_id, $post) { if( $post->post_type != ‘evento’ ) return; if (isset($_POST[‘is_quickedit’])) update_post_meta($post_id, ‘eventdate’, $_POST[‘eventdate’]); } function ilc_quickedit_get() { $html=”<script type=”text/javascript”>”; $html .= ‘jQuery(document).ready(function() {‘; $html .= ‘jQuery(“a.editinline”).live(“click”, function() {‘; $html .= ‘var id = inlineEditPost.getId(this);’; $html .= ‘jQuery.post(“‘ . THEME_URI . ‘/library/admin/admin.php”,{ post_id: id, modo: “ajaxget” },’; … Read more

Action ‘save_post’ not working for quick edit

It’s just a guess, since I haven’t tested your code, but… There is a part that looks pretty sketchy for me: All your actions are run only if this condition is true: if(isset($post_type) && $post_type == “listings”){ And where that $post_type variable comes from? $post_type = get_post_type(); So you don’t pass any post_id to that … Read more

Why isn’t my code to save custom fields in quick edit working?

I downloaded and activated the code referenced on GitHub, then added custom post type registration code for movies to match the original example. I noticed that the code on GitHub had a bug where the switch statement in manage_wp_posts_be_qe_bulk_quick_edit_custom_box() checks for release_date, coming_soon, and film_rating instead of release_date_column, coming_soon_column, and film_rating_column, so I fixed those … Read more