Jump to content

re calling a function without including file


ltoso

Recommended Posts

Hi,

i am new to programming in php, i was just checking the wordpress code and found out in the wordpress code they are calling the function get_header(); at the top of every page but above calling this function their is no file included file, how is it possible, how can a function work without function defination.

 

Please recommend

Regards

Ltoso

if there is no include file then the function is encoded in that page.

 

What WP page are you talking about i could have a look and see how more i could explain this as i am currently coding a function for a client.

hi,

but there is no include or require directive before the function call you can yourself download code and check it.

 

ltoso

 

Yes, the current page you are viewing is a file to be included. If it isn't defined then this is obviously so.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.