SimplePie_Item::get_id

SummerySummery

Get the unique identifier for the item

Syntax

SimplePie_Item::get_id( boolean $hash = false )

DescriptionDescription

This is usually used when writing code to check for new items in a feed.

Uses <atom:id>, <guid>, <dc:identifier> or the about attribute for RDF. If none of these are supplied (or $hash is true), creates an MD5 hash based on the permalink and title. If either of those are not supplied, creates a hash based on the full feed data.

ParametersParameters

$hash

(boolean) (Optional) Should we force using a hash instead of the supplied ID?

Default value: false

ReturnReturn

(string)

SourceSource

File: wp-includes/SimplePie/Item.php


			

ChangelogChangelog

Changelog
Version Description
Beta 2 Introduced.
Scroll to Top