This repository has been archived by the owner on Nov 25, 2022. It is now read-only.
v2.1.2
Changelog
Minor fixes were done on the code and some hooks were added for more flexibility.
Theme.php
- Fixed
Theme.php
getting always the current theme details when retrieving all themes - 9381313. - Themes details are no longer stored in database. It is useless - efec4a3 / 1a26352.
Hooks
- Allow users to add extra modules, plugins and themes headers (information) - eb68461. Examples:
// For modules:
add_action('modules_headers', function($headers) {
$headers['new_key'] = 'Default value';
return $headers;
});
// For plugins:
add_action('plugins_headers', function($headers) {
$headers['new_key'] = 'Default value';
return $headers;
});
// For themes, your only need to add keys.
add_action('themes_headers', function($headers) {
$headers[] = 'new_key';
return $headers;
});