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]
- Woocommerce Add Variation Product to Cart from custom link [closed]
- Is it possible to define a template for a custom post type within a plugin independent of the active theme?
- WooCommerce – How to Add a Custom Field to Cart Items and Cart Totals [closed]
- Ways to have multiple front-page.php templates that can be swapped out?
- User profiles and object associations
- Template for custom post type shows all posts instead of just one
- Creating a wordpress plugin where users can override templates
- Custom Shipping method not showing in checkout
- Show “Local Pickup” shipping method only for specific Woocommerce product categories [closed]
- WP Crowdfunding customization [closed]
- Can’t create term for product attribute
- block countries from shipping to them in WooCommerce [closed]
- How to get subscription key or id using Woocommerce Subscriptions [closed]
- How to Include a Loop Template File in a Plugin
- Add Product Subtitle to Woocommerce Product Page
- How can you include a theme template file from within a plugin (i.e. WooCommerce’s Shop page)?
- What are wsm tables for?
- Woocommerce dependent plugin
- New databes tables with – WooCommerce – for developers [closed]
- Plugin-generated pages use Not Found or Pages Archive templates?
- Change commission_status paid when withdraw_status vendor is completed
- Change Product Addon price based on select Variation
- WooCommerce – Maximum qty per line per product
- Woocommerce Create custom product type with variations
- Remove /product/ from url. I want only category name then product name
- Pre booking doesn’t work with custom bootstrap modul in woocommerce [closed]
- Save custom attributes of product in woocommerce
- Advanced Custom Field DatePicker [closed]
- trying to get product category image in woo-coomerce
- Custom Pages for Woocommerce Product-Category Pages
- Woocommerce Minimum Price for a Composite Product to add in cart
- Perform internal redirect in WordPress?
- WooCommerce search products between price range using WP_Query
- Timber – Twig post.content returns null can’t create ACF Gutenberg blocks
- Is there a way to get plugins and themes not built for multisite to work on a network subsite?
- Exact Hook to payment methods
- Adding Static Image to WooCommerce Content-Single-Product template
- Where to find the code used to render a page that has a shortcode and a template defined?
- Get Every Key & Value from Array then Display All in New Line
- How to add a new column with text fields to WooCommerce Cart List?
- Woocommerce: limit user to see only the products he created
- How do I get the Payzone WooCommerce payment gateway plugin to show up in the settings? [closed]
- Error with get_price (and others) in self-written plugin to show price
- How to change WooCommece variation data programmtically [closed]
- .php file for woocommerce edit category? [closed]
- Advanced Custom Fields (acf) – Filter Relationship by Taxonomies not Post Type
- WordPress Multi-Step Product Search
- Woocommerce Free shipping method [closed]
- dynamically create callback functions inside a for loop
- Call a function for social sharing
- How to call php file in theme directory from plugin
- WordPress Phone Field Check (use numbers, spaces and pluses)
- Can export gallery but can’t import it Wp all import
- Get product categories and add them to a custom taxonomy
- How to Get Category Name When Export Products
- woocommerce remove coupon link does not work
- Plugins to generate reflinks in WordPress
- Mobile Menu and Mobile Sidebar missing
- How to add label/badge on bookable product based on their booking status
- How to Fix WordPress multisite woocommerce 403 file error
- Adding discount functionality to the cart
- How to find the file path in WordPress?
- I have English words in Kurdish pages
- Woocommerce Attribute price for non-variations
- What are the disadvantages of using template_redirect for restrictions
- How to prevent redoing get_posts queries and make results available to other scripts?
- Change Woo Custom Endpoint Titles from a Plugin
- Woocommerce functions in custom class, avoid errors
- how to do Thematic like this website using wordpress?
- Meta Key array building with multiple input values from fields
- Fetching users data from REST API
- Automatically check “Enable stock management at product level” to the existing products?
- Change hook to add_action in a plugin class
- Adding/ Removing actions for plugins
- How to add HTML to a template only when user is logged out/ not registered
- Unable to sync woocommerce variations
- How to add dynamic content to posts page, archive, taxonomies, search, author, etc?
- Run one-time script calling plugin functions
- Unable to show 4 products in a row
- Woocommerce quick checkout form [closed]
- Woocommerce Large Variations Shows Out of Stock Items [closed]
- Why does theme need woocommerce to show images / content on front page?
- how do I solve Installation failed: There has been a critical error on your website
- WooCommerce product prices not showing up correctly [closed]
- woocommerce show cities state as dropdown list
- Override the plugin class and function
- My Blog page ( posts page ) theme isn’t changing with the new theme [closed]
- How can I make a quotation engine like this website in WooCommerce?
- Is there a plugin or another way that can help me find out the underlying files of a page/post? [closed]
- ShipStation WooCommerce Integration error
- Add Text in Single Product Page On a Specific Category
- Can we install 3d product configurator into wordpress
- Change Custom WordPress Function [closed]