07-09-2017, 01:50 PM
so far its autoloading userspice classes fine, not ran into any problems so far, im also working on a hooks & filters class ( it works exactly like wordpress's hooks & filters )
so we can register a hook to place in the header for example:
<pre></pre>
then we can create our header function to output meta tags for example:
<pre></pre>
the beauty of this is we can use filters or remove the action especially usefull in custom functions in usersc folder, we can use it for menu's, headers, footers etc its realy is unlimited
so we can register a hook to place in the header for example:
<pre>
Code:
function my_header {
do_action('my_header');
}
then we can create our header function to output meta tags for example:
<pre>
Code:
function my_meta {
echo 'my meta will be here';
}
add_action('my_meta', 'my_header');
the beauty of this is we can use filters or remove the action especially usefull in custom functions in usersc folder, we can use it for menu's, headers, footers etc its realy is unlimited