Iconseasy_svg_icon_ids_by_slug_like()

easy_svg_icon_ids_by_slug_like()

Returns ids of published icons whose slug contains a term.

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_icon_ids_by_slug_like( string $term ): int[]

Example

$ids = easy_svg_icon_ids_by_slug_like( 'arrow' );

Description

A direct prepared LIKE query on post_name, because WP_Query cannot search slugs. Empty term returns an empty array.

Parameters

body
$termstring

Search term.

Return value

returnint[]

Post ids.