wp_ajax_press_this_add_category

Ajax handler for creating new category from Press This.

Description

wp_ajax_press_this_add_category(); 

Usage

  1. if ( !function_exists( 'wp_ajax_press_this_add_category' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/ajax-actions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wp_ajax_press_this_add_category(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/ajax-actions.php  
  1. function wp_ajax_press_this_add_category() { 
  2. include( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' ); 
  3. $wp_press_this = new WP_Press_This(); 
  4. $wp_press_this->add_category();