Home>

This is a rudimentary question about making Wordpress plugins.
I'm thinking of plugging in the shortcode program that I have implemented myself and letting it be used by other sites.
So the question is, is there a function that can read hoge2.php, which is also directly under hoge_plugin, from the hoge.php file in the plugin folder called hoge_plugin?
When it was described in functions.php, I used get_stylesheet_directory () and get_template_part to read the files in the theme folder.

  • Answer # 1

    Is it plugin_dir_path?