'term', 'save_to_term' => 'new_term', ); } public function get_default_widgets(){ return [ [ 'widgetType' => 'heading', 'settings' => [ 'title' => __( 'Add New Term', 'frontend-admin' ), ], ], [ 'widgetType' => 'fea_term_name_field', 'settings' => [] ], [ 'widgetType' => 'fea_term_slug_field', 'settings' => [] ], [ 'widgetType' => 'submit_button', 'settings' => [ 'text' => __( 'Submit', 'frontend-admin' ), ], ], ]; } /** * Get widget categories. * * Retrieve the list of categories the acf ele form widget belongs to. * * @since 1.0.0 * @access public * * @return array Widget categories. */ public function get_categories() { return array( 'frontend-admin-terms' ); } /** * Get widget keywords. * * Retrieve the list of keywords the widget belongs to. * * @since 2.1.0 * @access public * * @return array Widget keywords. */ public function get_keywords() { $keywords = parent::get_keywords(); $keywords = array_merge( $keywords, [ 'new term', 'new taxonomy', 'mew category', 'new tag', 'add term', 'add taxonomy', 'add category', 'add tag', 'add post tag', 'add product tag', 'add product category', 'add custom taxonomy', ] ); return $keywords; } }