Squelette plugin se chargeant dans le hook plugins_loaded

<?php
/*
Plugin Name: My contents
Description: Create custom contents 
Version: 1.0
*/

if( !class_exists('MyContents') ){
class MyContents{
			
	public static function hooks(){
		add_action('plugins_loaded', array(__CLASS__,'plugins_loaded'));
	}
	
	public static function plugins_loaded(){
		self::lib_require();
	}
	
	protected static function lib_require(){
		require_once(dirname(__FILE__) .'/lib/my-content-1.php');
		require_once(dirname(__FILE__) .'/lib/my-content-2.php');
	}
	
}
MyContents::hooks();
}