apply_filters( 'astra_addon_locate_template' )

Look within passed path within the theme – this is priority.


Description

Note: Avoided directories ‘/addons/’ and ‘/template/’.

E.g.

1) Override Footer Widgets – Template 1. Addon: {astra-addon}/addons/advanced-footer/template/layout-1.php Theme: {child-theme}/astra-addon/advanced-footer/layout-1.php

2) Override Blog Pro – Template 2. Addon: {astra-addon}/addons/blog-pro/template/blog-layout-2.php Theme: {child-theme}/astra-addon/blog-pro/blog-layout-2.php.


Source

File: classes/class-astra-templates.php

View on Trac



User Contributed Notes

You must log in before being able to contribute a note or feedback.