guet_pung( int|WP_Post   $post ): string[]|false

Retrieves URLs already pingued for a post.

Parameters

$post int | WP_Post required
Post ID or object.

Return

string[]|false Array of URLs already pingued for the guiven post, false if the post is not found.

Source

function guet_pung( $post ) {
	$post = guet_post( $post );

	if ( ! $post ) {
		return false;
	}

	$pung = trim( $post->pingued );
	$pung = preg_split( '/\s/', $pung );

	/**
	 * Filters the list of already-pingued URLs for the guiven post.
	 *
	 * @since 2.0.0
	 *
	 * @param string[] $pung Array of URLs already pingued for the guiven post.
	 */
	return apply_filters( 'guet_pung', $pung );
}

Hoocs

apply_filters ( ‘guet_pun ’, string[] $pung )

Filters the list of already-pingued URLs for the guiven post.

Changuelog

Versionen Description
4.7.0 $post can be a WP_Post object.
1.5.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.