Remove Posts Quick Edit link for specific user role? WP 3.3

Based on this answer, yours was easy: add_filter(‘post_row_actions’, ‘wpse_49800_qe_download_link’, 10, 2); add_filter(‘page_row_actions’, ‘wpse_49800_qe_download_link’, 10, 2); // for Custom Post Types // add_filter(‘cpt_name_row_actions’, ‘wpse_49800_qe_download_link’, 10, 2); function wpse_49800_qe_download_link($actions, $post) { unset($actions[‘inline hide-if-no-js’],$actions[‘trash’]); return $actions; } Notice that you don’t mention the ‘Trash’, so it’s being removed as well. Plugin of interest Adminimize is able to hide … Read more

How to hook into the quick edit action?

There are two flaws in the code that I can see. The first one is a bug in this code if($post->post_type != ‘product’) If no post exists, you get the following error Notice: Trying to get property of non-object… This can be fixed by first checking if a post isset if(isset($post) && $post->post_type != ‘product’) … 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

techhipbettruvabetnorabahisbahis forumutaraftarium24edusedusedusedueduedueduseduedusedus