/ Published in: PHP
Just insert any category id into the argument and it will return the top level category object.
e.g: print_r( get_top_level_category('INSERT CATEGORY ID HERE') );
e.g: print_r( get_top_level_category('INSERT CATEGORY ID HERE') );