Jump to content

[SOLVED] Website structure for distributing functions like in wordpress


Jarod

Recommended Posts

Does anyone know how Wordpress distributes it's functions? I am wanting to distribute functions the same way for future use, right now I'm thinking that they transact through a middle page, I'm not exactly sure if they're imported right above the <html> tag though. But maybe I'm just completely wrong, any idea?

Link to comment
Share on other sites

Basically, everything runs through the index.php file, which loads all the functions into the memory by including various files from the wp-includes folder

From there it does all that it needs to in terms of filters, actions etc, then gets the template files, and eval()'s the code to output any of the function data within it

 

This is a very typical MVC structure - see wikipedia if you need more info on MVC

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.