'term', 'save_to_term' => 'edit_term', ); } public function get_default_widgets(){ return [ [ 'widgetType' => 'heading', 'settings' => [ 'title' => __( 'Edit 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' ); } }