Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
README.md | 2018-05-30 | 1.3 kB | |
v2.1.2.tar.gz | 2018-05-30 | 3.2 MB | |
v2.1.2.zip | 2018-05-30 | 4.1 MB | |
Totals: 3 Items | 7.3 MB | 0 |
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:
:::php // 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; });