get_actions(); $prepared = array(); foreach ( $actions as $index => $action ) { if ( ! $this->is_active( $action, $record ) ) { continue; } $prepared[] = $action->to_array( $record ); } return $prepared; } }