| 开发者 | jeweltechie |
|---|---|
| 更新时间 | 2026年5月29日 12:52 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
get_site_icon_url and site_icon_meta_tags filter hooks. Nothing is written to disk. Nothing changes in your hosting configuration.
Performance-Optimised Asset Loading
Admin scripts (wp_enqueue_media, picker JS, admin CSS) are loaded only on the exact admin screens that need them: post edit screens, taxonomy add/edit screens, and the plugin settings page. Zero extra assets load anywhere else in the admin.
Secure by Default
All save paths are protected by WordPress nonce verification, current_user_can() capability checks, and strict input sanitisation (esc_url_raw, sanitize_key, sanitize_text_field). Post meta is exposed to the REST API only through a scoped auth_callback.
Clean Uninstall
A dedicated uninstall.php removes all post meta, term meta, and plugin options when the plugin is deleted. Elementor settings are surgically cleaned — only the plugin's own keys are removed, leaving all other Elementor settings intact.
Who Is This For?
alada-favicon folder to /wp-content/plugins/.No. All favicon overrides are applied at runtime using WordPress filter hooks (get_site_icon_url and site_icon_meta_tags). Nothing is written to disk. No .htaccess rules are created or modified.
First, go to Settings → Alada Favicon and confirm that the post type you're editing is checked under "Enable Custom Favicon for Post Types". The metabox and Gutenberg panel only appear for enabled types. If it is enabled and still not saving in the Block Editor, ensure the post type has custom-fields support — the plugin adds this automatically for enabled types, but some third-party CPT registrations may override it.
Yes. The global favicon set on the Settings page overrides the WordPress site icon at the filter level. The original icon in Customizer is untouched — it simply acts as the baseline fallback when no plugin rule matches.
Yes. Go to Settings → Alada Favicon, enable the Product Category taxonomy, and save. A favicon picker will then appear on the Add/Edit Product Category screens. The icon will show on your shop category archive pages.
Yes. A metabox titled "Page Favicon" is added to the Classic Editor sidebar for all enabled post types. It includes a media upload button, a preview thumbnail, and a remove button.
Yes, with Elementor 3.5 or later. A "Favicon" section is added to the Elementor page Settings panel. This acts as Priority 2 in the resolution matrix (below per-page WP meta, above taxonomy and global).
All plugin data is removed cleanly on deletion: post meta (_alada_page_favicon), term meta (_alada_term_favicon), Elementor settings (alada_favicon_elementor_icon), and the plugin's options record are all deleted. All other site content and settings are untouched.
For the global site icon, a 512×512 px PNG is recommended — WordPress uses this to generate the various sizes needed for browsers, mobile home screens, and browser tabs. For per-page and per-term favicons, a 32×32 or 64×64 px PNG or ICO is sufficient as the plugin outputs the image URL directly without resizing.
The plugin stores and outputs image URLs directly. However, best practice is to upload images to your own WordPress Media Library to avoid broken icons if an external source changes or goes offline.
Yes. Because the plugin outputs favicon tags via WordPress's standard wp_head hook and filter pipeline, full-page caches will capture the correct output for each URL. If you change a favicon and the old one persists, purge your page cache.