Actually you can overwrite get_page_template() using page_template filter.
So now, your code should be like bellow code.
add_filter( 'page_template', 'load_template_from_plugin' );
function load_template_from_plugin( $page_template ){
if ( is_page( 'bog_test' ) ) {
$page_template = dirname( __FILE__ ) . '/bog_test.php';
}
return $page_template;
}
Try the above code then let me know the result.
Thanks
Related Posts:
- WooCommerce – Load Templates From Plugin For All Template Files
- Woocommerce email template customization [closed]
- Woocommerce – Change Variable Product Add to Cart to behave like external product using Custom Field (link) [closed]
- WoCommerce Cart is not showing pricing
- Programmatically generate new pages for a site based on page template and content elements accessed via DB
- Template conflict with WC Payment Method
- WP Customer Reviews call short code on another page [closed]
- Create custom page templates with plugins?
- How to Display Product specific to a category with WooCommerce Plugin? [closed]
- Woocommerce hook after creating order? [closed]
- Consuming an external API in WordPress?
- Can’t set proper WooCommerce language translation [closed]
- How to authenticate custom API endpoint in WooCommerce [closed]
- Updating WooCommerce variable product stock issue
- WooCommerce Dynamic Cart Pricing
- Custom url structure for custom template
- do_shortcode() doesn’t work if shortcode contained in variable, works if shortcode passed as string
- Add multiple attributes to product from php
- Override comments.php template with plugin
- How To Hide Filters On Specific Categories with WooCommerce Products Filter(WOOF)
- Can we use a webservice with WordPress?
- Absolute Image URL in srcset is appended to the upload dir
- Only Homepage not loading properly
- woocommerce 3.2.1 not sending order notification emails
- Override Javascript in a Plugin?
- Woocommerce – How to populate custom select field with stored values on checkout page?
- Register Page Template from Plugin
- WordPress automatically removes line break
- Add woocommerce variation images in gallery?
- Fetch Children of Grouped Products Inside WooCommerce Product Loop
- (FES EDD) New vendor submission page is blank
- WooCommerce: Building a page with user input which is used to query order status and external API and return a result
- How to toggle between two custom fields in WordPress woocommerce ‘WC Product Field Group’ plugin?
- How to add checkboxes for a woocommerce product? [closed]
- Use of Templates in a Plugin
- Why am I getting ( WooCommerce Services could not be installed (Could not create directory.). ) error and how to solve it ?
- how to do login using woocommerce rest api From android
- Redirect to another page using contact form 7? [closed]
- Template filter for custom taxonomy terms
- How to get a list of bundled products using wp_query in woocommerce
- How to get the particular product quantity in orders in Woocommerce [closed]
- Plugin Admin Menu Boiler Plate
- Conditional Shipping Options if Certain Products are in Cart WooCommerce
- Woocommerce Backend Search by Title and SKU
- add seperate suffix for low price and high price in woocommerce
- Get products list by url key in WordPress Woocommerce [closed]
- Custom template for all woo commerce categories
- Is it possible to instantiate a new WC_Cart?
- Sell access to form [closed]
- I want to filter my products with attributes [closed]
- reCAPTCHA on page template without plugin
- Pull comments from one page/post into another page/post?
- How to return a specific attribute
- Automatic recurring payment using YITH subscription and Dokan Stripe
- use EDD Content Restriction for restricting php in template
- apply_filters(woocommerce_get_item_data, …) Causing errors when adding to cart
- Change Dashboard URL from wp-admin to wp-admin/index.php
- How To Use do_shortcode with WooCommerce One Page Checkout
- How to makes changes on the shop/category/tag pages but not on the product pages in woocommerce?
- Hide fields in woocommerce settings
- woocommerce: Customize email with item total count
- Save order without sending the invoice / order details woocommerce [closed]
- How to check if short code is present in template?
- show wc_add notices on particular page in woo commerce custom plugin development
- Make modification of add_to_cart button specific to single page
- How to get the checkout form data from checkout page when place-order button is clicked
- Product Page loads terribly slow when product gallery images are added
- How to make WooCommerce multiple filter with custom meta fields
- One WooCommerce Store to multi distributor sites
- Custom form data not displaying in cart page?
- best way to handle subscriptions with a licence?
- Is there a request for products plugin for WooCommerce
- woocommerce with external ftp site
- Only return taxonomies that are linked to a category & product
- WordPress eMails not working
- Add WooCommerce vendor slug to auto-generated SKU
- Custom plugin issue – Notice: Trying to get property of non-object in
- fetch price from different table woocommerce
- Cannot save a custom meta field in quick edit
- Customize plugin templates
- how to make settings page for woocommerce plugin?
- redirect to a custom page
- Many to many relationship for variable products
- Change value of Points earned in product data
- Problem with conditional woocommerce custom checkout field
- How woo-commerce store Product Data value in DB?
- Not getting result using ajax on wordpress
- Which WordPress version to use for improved plugin compatibility? [closed]
- Convert HTML5/CSS3 site to WordPress Theme (need a lot of plugins) or just use the API?
- Trying to disable all notifications except for one on woocommerce checkout page with css [closed]
- Hook for single product thumbnail
- Woocommerce where to set the Price Suffix [closed]
- Translate text for empty product
- How can I make a quotation engine like this website in WooCommerce?
- How to show image caption in Woocommerce gallery
- ShipStation WooCommerce Integration error
- Add Text in Single Product Page On a Specific Category
- Brands Filter Not Working For On Sale Products
- add to cart linking to add to cart page
- Need to add custom cart item data