'integrations', 'name' => esc_html__('Integrations', 'daytidy'), ]; } /** * Calls when the Module is Enabled (Turned On) * * @return void */ public function on(): void { // Activate the Block Editor add_filter('DayTidy/F__DayTidy/Posts/Offering__args/args', [$this, 'activate']); } /** * Activate the Block Editor * * @param mixed[] $args * @return mixed[] */ public function activate(array $args): array { // Activate the Block Editor $args['show_in_rest'] = true; return $args; } }