quick_edit_custom_box without core hacks
-
this is my face shocked! :0
To see people in here using hooks and filters, and then hacking core code to complete the fix…. yea, thats not a solution.
We are adding code like this, but for some reason its repeating itself 5 times (which you are able to see because I placed a cursor that displays)
function my_sticky_option($column_name) { global $post; global $cursortemp; if($cursortemp < 1) $cursortemp = 1; else $cursortemp = $cursortemp + 1; if ($post->post_type == 'ad_listing'): ?> <fieldset class="inline-edit-col-right"> <div class="inline-edit-col"> <label class="alignleft"> <input type="checkbox" name="sticky" value="sticky" /> <span class="checkbox-title"><?php _e('Featured Ad (sticky)', 'wp'); echo 'c'.$cursortemp; ?></span> </label> </div> </fieldset> <?php endif; } add_action('quick_edit_custom_box', 'my_sticky_option');
trying now to find a solution to that problem…
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘quick_edit_custom_box without core hacks’ is closed to new replies.