boot(); register_activation_hook( TOCGUIDE_FILE, array( 'TOCguide_Plugin', 'activate' ) ); register_deactivation_hook( TOCGUIDE_FILE, array( 'TOCguide_Plugin', 'deactivate' ) ); /** * Heading map for a post. Kept as a prefixed wrapper so render.php stays thin. * * @param int $post_id Post ID. * @return array */ function tocguide_get_all_headings( $post_id ) { return TOCguide_Headings::get_all( $post_id ); } /** * Render nested list markup from heading data. * * @param array $headings Heading data with normalized 'level'. * @param string $list_tag 'ol' or 'ul'. * @return string */ function tocguide_render_list( $headings, $list_tag ) { return TOCguide_Headings::render_list( $headings, $list_tag ); }