get_name(); $widget->start_controls_section( "section_{$action}", [ 'label' => $this->get_title(), 'condition' => [ 'crm_actions' => $action ], ] ); $this->add_controls( $widget ); $widget->end_controls_section(); } /** * Add action controls. * * @param object $widget instance. * @return void * * @since 1.5.0 * @access public * @abstract */ abstract public function add_controls( $widget ); /** * Run the main functionality of the action. * * @param AjaxHandler $ajax_handler Ajax handler instance. * * @since 1.5.0 * @access public * @abstract * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function run( AjaxHandler $ajax_handler ) {} }