Featured_Content::delete_post_tag PHP Method

delete_post_tag() public static method

It's important to mention that the transient needs to be deleted, too. While it may not be obvious by looking at the function alone, the transient is deleted by Featured_Content::validate_settings(). Hooks in the "delete_post_tag" action.
public static delete_post_tag ( integer $tag_id ) : void
$tag_id integer The term_id of the tag that has been deleted.
return void
        public static function delete_post_tag($tag_id)
        {
            $settings = self::get_setting();
            if (empty($settings['tag-id']) || $tag_id != $settings['tag-id']) {
                return;
            }
            $settings['tag-id'] = 0;
            $settings = self::validate_settings($settings);
            update_option('featured-content', $settings);
        }