Hotaru Docs

 [həʊdɒks]

Function Reference/getCatId

Description

Return the ID of a category from its name.

Usage

<?php getCatId( $cat_safe_name ) ?>

Parameters

$cat_safe_name | string

Return Values

string ID of category on success.

Examples

<?php
     $cat_id = $h->getCatId('Example Category Name');
     echo $cat_id;
?>

Source File

getCatId() is located in content/hotaru.php which calls the category.php file from the LIBS folder.

Related