$value ) { update_term_meta( $key, 'order', $value ); } wp_die(); } add_action( 'wp_ajax_accp_sorting_terms', 'accp_sorting_terms' );