N
N
Nikita Shchypylov2018-04-29 18:59:47
WordPress
Nikita Shchypylov, 2018-04-29 18:59:47

What does the jeg_get_template_part() PHP function do in WP?

Hello everyone
In the file I found the function:

jeg_get_template_part('template/navigation-top', 'wpml');

She is responsible for displaying languages ​​in the header. As I understand it, there should be a navigation-top-wpml.php file in the template folder, but it's not there! If I comment on the call of the function, then the languages ​​\u200b\u200bdisappear, that is, it calls something. How to figure it out?
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan Hasanli, 2018-04-29
@Nikulio

Hello!
get_template_part gets the template in this case from the templates folder navigation-top.php file The jeg_
prefix indicates that the function is custom (of the theme itself, plugin or framework).
'wpml' is textdomain most likely. Usually added so that the string can be translated through the WPML String Translation plugin. Or is it another parameter ... you need to look in the code

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question