wpseek.com
WordPress开发者和主题制作者的搜索引擎
_delete_site_logo_on_remove_custom_logo › WordPress Function
Since5.8.0
已弃用n/a
› _delete_site_logo_on_remove_custom_logo ( $old_value, $value )
| 参数: (2) |
|
| 定义在: |
|
| 文档: |
Deletes the site_logo when the custom_logo theme mod is removed.
源码
function _delete_site_logo_on_remove_custom_logo( $old_value, $value ) {
global $_ignore_site_logo_changes;
if ( $_ignore_site_logo_changes ) {
return;
}
// If the custom_logo is being unset, it's being removed from theme mods.
if ( isset( $old_value['custom_logo'] ) && ! isset( $value['custom_logo'] ) ) {
delete_option( 'site_logo' );
}
}