- Bought between 10 and 49 items
- Exclusive Author
- Has been a member for 5-6 years
- Referred between 1 and 9 users
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Sold between 5 000 and 10 000 dollars
- Uruguay
Hey guys, this is not a problem at all, i wish to share what i discover. I´m using this two wonderfull functions to create almost anything on my new theme, it´s very easy.
Boths functions will no return nothing, no error, if function not declared or file do not exists!!
First of all, that´s the main difference if using include(). in fact the get_template_part wil do finaly an include.
Also if you call a function via normal way “your_function()”, and this function does not exists, you will see a beautifull error!!
So, i don´t know if i “discoverd” something, but i´m realy impresed the fast is to code using this 2 functions.
You can also include anything and then replace that part (get_template_part) on child themes as easy as clone and modify the new php file (not only templates, also scripts and functions files)
What you thing? Did you use them?
Take a look at codex, not much info, but has nothing hard on them.
- Bought between 10 and 49 items
- Exclusive Author
- Has been a member for 5-6 years
- Referred between 1 and 9 users
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Sold between 5 000 and 10 000 dollars
- Uruguay
Hey i mean, i´m using the functions since long time, but now i started to use them into the functions part, and i discover that, is so nice work that way!
