hgsf_sync_source('facebook')); add_action('hgsf_sync_x', static fn () => hgsf_sync_source('x')); register_activation_hook(__FILE__, 'hgsf_schedule_events'); register_deactivation_hook(__FILE__, static function (): void { foreach (array_keys(HGSF_SOURCES) as $source) { wp_clear_scheduled_hook('hgsf_sync_' . $source); } }); add_action('admin_init', static function (): void { if (get_option('hgsf_cron_version') !== HGSF_VERSION) { hgsf_schedule_events(); } }); add_shortcode('hg_socialfeed', 'hgsf_shortcode'); add_shortcode('hg_sociallinks', 'hgsf_sociallinks_shortcode'); add_filter('plugin_action_links_' . plugin_basename(__FILE__), static function (array $links): array { if (current_user_can('manage_options')) { $links[] = 'Instellingen'; } return $links; });