get theme path in wordpress

To get the theme path in WordPress, you can use the get_stylesheet_directory() function. This function returns the absolute server path to the current active theme's directory. Here's an example of how to use it:

<?php
    $theme_path = get_stylesheet_directory();
    echo $theme_path;
?>

When you call the get_stylesheet_directory() function, it will return the path to the active theme's directory. Then, you can use the returned path for whatever purpose you need within your WordPress theme or plugin.