Facilement overridable (le hook ou le service) <?php namespace WonderWp\Plugin\Core; use WonderWp\Framework\DependencyInjection\Container; use WonderWp\Framework\Hook\AbstractHookService; class WwpHookService extends AbstractHookService { /** @inheritdoc */ public function run(WwpAdminChangerService $adminChangerService) { //Admin Login add_action('login_head', [$adminChangerService, 'customize_login_screen']); add_action('admin_menu', [$adminChangerService, 'forceDashboard']); //Admin pages add_action('admin_head', [$adminChangerService, 'jsConfig']); add_action('admin_head', [$adminChangerService, 'customizeLogo']); add_action('admin_menu', [$adminChangerService, 'customizeMenus']); add_action('admin_init', [$adminChangerService, 'registerPanels']); add_action('save_post', [$panelService, 'savePanels']); add_action('manage_pages_custom_column', [$tableManagerService, 'modifiedColumnValue'], 10, 2); add_filter('manage_edit-page_columns', [$tableManagerService, 'addModifiedColumn']); add_filter('manage_edit-page_sortable_columns', [$tableManagerService, 'addModifiedSortableColumn']); add_action('manage_posts_custom_column', [$tableManagerService, 'modifiedColumnValue'], 10, 2); add_filter('manage_edit-post_columns', [$tableManagerService, 'addModifiedColumn']); add_filter('manage_edit-post_sortable_columns', [$adminChangerService, 'addModifiedSortableColumn']); } }