How To Use Page Templates In A Plugin

Paulund is full of premium tutorials and support to help with your development

Sign up to get full access to all tutorials.

Get Started

Login to your account

page-template

In this tutorial we're going to investigate how you can override a theme template files from your WordPress plugins. For this we're going to be using two filters: theme_page_templates template_include By attaching to a filter in WordPress it allows you to pass in a parameter to modify before moving on to the next . . .

Get Started

Other Tutorials In Plugin Development

How To Use Page Templates In A Plugin


FREE

One Plugin Vs Lots Of Smaller Plugins


Using Composer With WordPress


Run Code For Multisite On Plugin Activation


FREE

How To Create A Custom Geotag Field On Formidable


Dequeue Styles and Scripts In WordPress


Restrict Content Pro Stats WordPress Dashboard Widget


Back To Top WordPress Plugin


FREE

Get A WordPress Plugin File Path Or URL


Using Namespacing And Autoloaders In WordPress Plugins


FREE

Override Theme Template In Plugin


FREE

Using AJAX In WordPress


Get A List Of Registered Actions In WordPress


FREE

Change Language Locale From WordPress Plugin


FREE

Debugging In WordPress


FREE

Uninstall Hook For WordPress Plugin


FREE

Remove Query String From Stylesheets In WordPress


FREE

Force WordPress To Check For Plugin Updates


FREE

How To Rewrite URLs In WordPress


FREE

Display Post Meta Box On Specific Page Templates


Debug WordPress Cron Jobs


FREE

Add Button To Editor For All Shortcodes


Override Sidebars Per Page In WordPress


FREE

WordPress Dropins


FREE

CRUD Queries For WordPress Custom Tables


FREE

Get Database Table Prefix In WordPress


Create Custom Tables In WordPress


FREE

Have Always Installed WordPress Plugins


FREE

Get Current Plugin URL


FREE

Create A Sharrre WordPress Plugin


FREE

Remove Plugins From Plugin Screen


FREE

Useful WordPress Utility Functions


Alert Theme Users To Required Plugins


FREE

Stop Loading Stylesheets And Javascript In WordPress


FREE

Introduce Your Plugin With WordPress Pointers


FREE

Data Validation With WordPress


FREE

Handling WordPress User Roles


FREE

Add Date Picker To WordPress Admin


FREE

Add Colour Picker To WordPress Admin


FREE

Default Scripts To Use In WordPress Development


FREE

How To Cache Queries In WordPress


FREE

Add Image To Your Plugin On WordPress.org


FREE

WordPress File Header Comments


FREE

Create A WordPress Plugin To Add A Pin Button To Every Image


FREE

Run Function After WordPress Plugin Activation


FREE

Create Cron Jobs In WordPress


FREE

Add Additional Links To The WordPress Plugin Admin


FREE

Display The Number of Database Queries In WordPress