To associate a screenshot and add credits for a theme on the WordPress theme selection page, simply add a file named « screenshot.jpg » and place it at the root of the theme.
For the credits, just add the following code to the style.css file at the root of the theme and include the following header:
@charset "utf-8"; /* Theme Name: Le nom de mon theme Theme URI: http://ledomainedutheme.com/cequetuveux/ Author: partITech Author URI: http://www.partitech.com Version: 1.0 */
Reproduce this customization today
The principle of the hook remains useful, but the administration screens and WordPress APIs have evolved since the publication. Test the code in a staging environment with the exact version of the site's core, theme, and plugins.
- Save the files and the database before making any changes.
- Control user capabilities, nonces, input validation, and output escaping.
- Place customizations in a dedicated plugin or a child theme to preserve updates.
Reference: official WordPress plugin development manual.