Trash Bin for Categories?

i finded solution for this: add_filter( “cat_notice_row_actions”, ‘trash_row_actions’, 10, 2 ); function trash_row_actions( $actions, $user_object ) { // Remove the Edit action. unset( $actions[‘delete’] ); $catTrash = 10; $id = $user_object->term_id; $taxName = $user_object->taxonomy; $taxParent = $user_object->parent; // Add your custom action. $actions[‘update-parent’] = “<form action=’#’ method=’get’> <input type=”hidden” name=”taxonomy” value=”$taxName”> <input type=”hidden” name=”post_type” value=”noticia”> … Read more

How to use wp_update_post with ajax on frontend

hmmm…. I don’t see a problem with your code. When I run into 500, it’s usually due to permissions or htaccess mis-routing the request. That said, some things to try: 1) in wp-config.php, set debug WP_DEBUG to true. This may offer a more descriptive error message. 2) WordPress has good integration for AJAX. You can … Read more

Custom wp_editor doesn’t update post_content

After some searching and working off of some pointers from toscho, and some other helpful posts to avoid an infinite loop I managed to figure out a solution. I’ll post the code below then briefly explain: // Hook into the actions here public function __construct() { add_action( ‘add_meta_boxes’, array($this, ‘meta_boxes’ )); add_action( ‘save_post’, array($this, ‘save_bio_data’ … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)