/** * Ajax handler for creating new category from Press This. * * @since 4.2.0 */ function wp_ajax_press_this_add_category() { include ABSPATH . 'wp-admin/includes/class-wp-press-this.php'; $wp_press_this = new WP_Press_This(); $wp_press_this->add_category(); }