public static function init($settings = array()) { self::$__settings = (array) $settings; self::__registerScripts(); self::__registerStyles(); self::__toolset(); add_action('admin_print_scripts', array('WPCF_Loader', 'renderJsSettings'), 5); add_filter('the_posts', array('WPCF_Loader', 'wpcf_cache_complete_postmeta')); }