Grandchild Term Things Grandfather Term is It’s Parent

Use get_terms() and the parent argument.

‘parent’ (int|string) Parent term ID to retrieve direct-child terms
of.

$parent_term_id     = 123;
$direct_child_terms = get_terms( array(
    'taxonomy' => '[taxonomy]',
    'parent'   => $parent_term_id,
) );

Don’t forget to replace [taxonomy] with whatever the taxonomy is; e.g., post_tag, product_cat, etc. Additional arguments for further customization here.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)