I need to include plugin in my WordPress theme without plugin activation. I have these lines:
include_once dirname( __FILE__ ) . '/math/class-constrained-array-rounding.php';
include( plugin_dir_path( __FILE__ ) . 'class.jetpack-user-agent.php');
and
wp_enqueue_script( 'tiled-gallery', plugins_url( 'tiled-gallery/tiled-gallery.js', __FILE__ ), array( 'jquery' ) );
wp_enqueue_style( 'tiled-gallery', plugins_url( 'tiled-gallery/tiled-gallery.css', __FILE__ ), array(), '2012-09-21' );
I think I need to use function get_template_directory_uri()
instead of plugin_dir_path
to include these files, but I'm confused.
I'm new in WordPress. Can somebody suggest a solution to this problem? :)