Iconseasy_svg_forget_deleted_icon()

easy_svg_forget_deleted_icon()

Drops the icon cache after a delete, only when the deleted post was an icon.

Function · Easy SVG · Status: Internal · Defined in includes/icon-manager.php

Internal: not part of the promised public surface. It may change without notice.

Usage

easy_svg_forget_deleted_icon( int $post_id, ?WP_Post $post = null ): void

Example

remove_action( 'deleted_post', 'easy_svg_forget_deleted_icon', 10 );

Description

Hooked on deleted_post while the library is on.

Parameters

body
$post_idint

Deleted post id.