how to require file from plugin directory of wordpress in theme page

I want to require_once an html file from plugin directory of wordpress in the custom page of wordpress

i have tried

Read More
require_once(WP_PLUGIN_URL."/sinetiks-schools/images/t1.php");

but getting an error

require_once(): http:// wrapper is disabled in the server configuration by allow_url_include=0 i

Related posts

1 comment

  1. Try this:

    <?php
     echo '<img src="' . plugins_url( 'images/wordpress.png', dirname(__FILE__) ) . '" > ';
            $dir = plugin_dir_path( __FILE__ );
            var_dump($dir);
     ?>
    

Comments are closed.