SlideShare una empresa de Scribd logo
1 de 83
BEYOND WP-CONTENT
    WordCamp Raleigh | 2010
        @glennansley
PURPOSE
PURPOSE
•WordPress file structure
PURPOSE
•WordPress file structure
•WordPress programing logic
PURPOSE
•WordPress file structure
•WordPress programing logic
•Web and not-web resources
WORDPRESS FILE STRUCTURE
Root Directory
This is the starting point for your file system

•Notable Files
 •index.php
 •wp-config.php
 •wp-load.php
 •xmlrpc.php
WORDPRESS FILE STRUCTURE
Root Directory
This is the starting point for your file system

•Notable Folders
 •wp-content
 •wp-includes
 •wp-admin
WORDPRESS FILE STRUCTURE
WP-Content
This is folder contains all the files unique to your site.
•Notable Folders
 •plugins
 •themes
 •uploads
 •upgrades
WORDPRESS FILE STRUCTURE
WP Admin
This is the location for almost everything admin related.
•Notable Files
 •admin.php
 •admin-header.php
 •options-*.php
 •edit-*.php
WORDPRESS FILE STRUCTURE
WP Admin
This is the location for almost everything admin related.
•Notable Folders          •Notable Files in /includes
 •/includes                •admin.php
                           •meta-boxes.php
                           •post.php
                           •user.php
WORDPRESS FILE STRUCTURE
WP-INCLUDES
This folder contains most of the heavy lifting for WP
•Notable Files
 •class-http.php         •functions.php
 •class-phpmailer.php    •general-template.php
 •classes.php            •pluggable.php
 •default-filters.php     •query.php
 •formatting.php         •user.php
WordPress Programming Logic
  How does PHP traverse the WP file structure?
WordPress Programming Logic
  How does PHP traverse the WP file structure?
WordPress Programming Logic
  How does PHP traverse the WP file structure?
               •   The first file is loaded, checked for errors, and processed
WordPress Programming Logic
  How does PHP traverse the WP file structure?
               •   The first file is loaded, checked for errors, and processed

               •   It hits a PHP include, loads the requested file and
                   processes down the script
WordPress Programming Logic
  How does PHP traverse the WP file structure?
               •   The first file is loaded, checked for errors, and processed

               •   It hits a PHP include, loads the requested file and
                   processes down the script
               •   It in turn hits another include which processes down
                   through two more includes
WordPress Programming Logic
  How does PHP traverse the WP file structure?
               •   The first file is loaded, checked for errors, and processed

               •   It hits a PHP include, loads the requested file and
                   processes down the script
               •   It in turn hits another include which processes down
                   through two more includes

               •   At this point PHP is still processing data and there are
                   no includes at the bottom of this file
WordPress Programming Logic
  How does PHP traverse the WP file structure?
               •       The first file is loaded, checked for errors, and processed

               •       It hits a PHP include, loads the requested file and
                       processes down the script
               •       It in turn hits another include which processes down
                       through two more includes

               •       At this point PHP is still processing data and there are
                       no includes at the bottom of this file

                   •    So PHP returns to the next line in the file we left and
                        continues to process to the end of that file
WordPress Programming Logic
  How does PHP traverse the WP file structure?
               •       The first file is loaded, checked for errors, and processed

               •       It hits a PHP include, loads the requested file and
                       processes down the script
               •       It in turn hits another include which processes down
                       through two more includes

               •       At this point PHP is still processing data and there are
                       no includes at the bottom of this file

                   •    So PHP returns to the next line in the file we left and
                        continues to process to the end of that file

                   •    At the end of file two, PHP returns to the next line in
                        file one and continues to the end of the script.
WordPress Programming Logic
  How does PHP traverse the WP file structure?
WordPress Programming Logic
  How does PHP traverse the WP file structure?
               •   wp-blog-header.php is a great reference for this illustration.
WordPress Programming Logic
  How does PHP traverse the WP file structure?
               •   wp-blog-header.php is a great reference for this illustration.
WordPress Programming Logic
  How does PHP traverse the WP file structure?
               •   wp-blog-header.php is a great reference for this illustration.




                                             Load the data
WordPress Programming Logic
  How does PHP traverse the WP file structure?
               •   wp-blog-header.php is a great reference for this illustration.




                                             Load the data

                                       Deliver the data
WordPress Programming Logic
Quick review so far
WordPress Programming Logic
Quick review so far
•WordPress is made up of several files organized in folders.
WordPress Programming Logic
Quick review so far
•WordPress is made up of several files organized in folders.
•/wp-content is where developers make most modifications.
WordPress Programming Logic
Quick review so far
•WordPress is made up of several files organized in folders.
•/wp-content is where developers make most modifications.
•PHP traverses this file structure in a logical manner, including
only what is necessary for the current action.
WordPress Programming Logic
What happens as PHP traverses the WP file structure?
WordPress Programming Logic
    What happens as PHP traverses the WP file structure?

•Includes requested PHP scripts.
WordPress Programming Logic
    What happens as PHP traverses the WP file structure?

•Includes requested PHP scripts.
•Loads functions into the server’s memory
WordPress Programming Logic
    What happens as PHP traverses the WP file structure?

•Includes requested PHP scripts.
•Loads functions into the server’s memory
•Loads data into the server’s memory
  •REQUESTS
  •Database info
  •COOKIES and SESSIONS
  •CACHE
  •Constants, variables, class objects
WordPress Programming Logic
What happens as PHP traverses the WP file structure?
WordPress Programming Logic
    What happens as PHP traverses the WP file structure?

•Invokes actions on the data in your server’s memory
WordPress Programming Logic
    What happens as PHP traverses the WP file structure?

•Invokes actions on the data in your server’s memory
  •Spitting HTML out to the browser
WordPress Programming Logic
    What happens as PHP traverses the WP file structure?

•Invokes actions on the data in your server’s memory
  •Spitting HTML out to the browser
  •Executing core PHP functions ( explode(), unset(), etc ).
WordPress Programming Logic
    What happens as PHP traverses the WP file structure?

•Invokes actions on the data in your server’s memory
  •Spitting HTML out to the browser
  •Executing core PHP functions ( explode(), unset(), etc ).
  •Executing WordPress defined functions already in memory.
WordPress Programming Logic
    What happens as PHP traverses the WP file structure?

•Invokes actions on the data in your server’s memory
  •Spitting HTML out to the browser
  •Executing core PHP functions ( explode(), unset(), etc ).
  •Executing WordPress defined functions already in memory.
  •Making remote requests to other scripts or web services
WordPress Programming Logic
Common errors based on a weak grasp of this behavior
WordPress Programming Logic
   Common errors based on a weak grasp of this behavior


•Undefined data (objects, variables, constants, etc)
WordPress Programming Logic
   Common errors based on a weak grasp of this behavior


•Undefined data (objects, variables, constants, etc)
•Undefined functions
WordPress Programming Logic
   Common errors based on a weak grasp of this behavior


•Undefined data (objects, variables, constants, etc)
•Undefined functions
•Undefined class properties
WordPress Programming Logic
   Common errors based on a weak grasp of this behavior


•Undefined data (objects, variables, constants, etc)
•Undefined functions
•Undefined class properties
•Missed hooks
WordPress Programming Logic
   Common errors based on a weak grasp of this behavior


•Undefined data (objects, variables, constants, etc)
•Undefined functions
•Undefined class properties
•Missed hooks

                  It’s all about the timing!
My Tipping Point MVPs
Some of the most helpful aspects of WP core that have helped me
              become a more efficient developer

Hooks
My Tipping Point MVPs
  Some of the most helpful aspects of WP core that have helped me
                become a more efficient developer

Hooks
•init (action)
My Tipping Point MVPs
  Some of the most helpful aspects of WP core that have helped me
                become a more efficient developer

Hooks
•init (action)
•admin_init (action)
My Tipping Point MVPs
  Some of the most helpful aspects of WP core that have helped me
                become a more efficient developer

Hooks
•init (action)
•admin_init (action)
•template_redirect (action)
My Tipping Point MVPs
  Some of the most helpful aspects of WP core that have helped me
                become a more efficient developer

Hooks
•init (action)
•admin_init (action)
•template_redirect (action)
•plugins_loaded (action)
My Tipping Point MVPs
Some of the most helpful aspects of WP core that have helped me
              become a more efficient developer

Functions
My Tipping Point MVPs
 Some of the most helpful aspects of WP core that have helped me
               become a more efficient developer

Functions
•&get_posts
My Tipping Point MVPs
   Some of the most helpful aspects of WP core that have helped me
                 become a more efficient developer

Functions
•&get_posts
•register_* ( importers, settings, widgets, posts, post types, taxonomies, menus )
My Tipping Point MVPs
   Some of the most helpful aspects of WP core that have helped me
                 become a more efficient developer

Functions
•&get_posts
•register_* ( importers, settings, widgets, posts, post types, taxonomies, menus )
•helper functions ( get_the_title, get_permalink, etc )
My Tipping Point MVPs
   Some of the most helpful aspects of WP core that have helped me
                 become a more efficient developer

Functions
•&get_posts
•register_* ( importers, settings, widgets, posts, post types, taxonomies, menus )
•helper functions ( get_the_title, get_permalink, etc )
•current_user_can
My Tipping Point MVPs
   Some of the most helpful aspects of WP core that have helped me
                 become a more efficient developer

Functions
•&get_posts
•register_* ( importers, settings, widgets, posts, post types, taxonomies, menus )
•helper functions ( get_the_title, get_permalink, etc )
•current_user_can
•wp_redirect
My Tipping Point MVPs
Some of the most helpful aspects of WP core that have helped me
              become a more efficient developer

Classes
My Tipping Point MVPs
 Some of the most helpful aspects of WP core that have helped me
               become a more efficient developer

Classes
•WP_Query
My Tipping Point MVPs
 Some of the most helpful aspects of WP core that have helped me
               become a more efficient developer

Classes
•WP_Query
•WP_User
My Tipping Point MVPs
 Some of the most helpful aspects of WP core that have helped me
               become a more efficient developer

Classes
•WP_Query
•WP_User
•WP_Error
My Tipping Point MVPs
 Some of the most helpful aspects of WP core that have helped me
               become a more efficient developer

Classes
•WP_Query
•WP_User
•WP_Error
•Wp_Roles
My Tipping Point MVPs
 Some of the most helpful aspects of WP core that have helped me
               become a more efficient developer

Classes
•WP_Query
•WP_User
•WP_Error
•Wp_Roles
•WP_Rewrite
My Tipping Point MVPs
 Some of the most helpful aspects of WP core that have helped me
               become a more efficient developer

Classes
•WP_Query
•WP_User
•WP_Error
•Wp_Roles
•WP_Rewrite
•WP_Http
My Tipping Point MVPs
 Some of the most helpful aspects of WP core that have helped me
               become a more efficient developer

Classes
•WP_Query
•WP_User
•WP_Error
•Wp_Roles
•WP_Rewrite
•WP_Http
•PHPMailer
My Tipping Point MVPs
 Some of the most helpful aspects of WP core that have helped me
               become a more efficient developer

Files
My Tipping Point MVPs
 Some of the most helpful aspects of WP core that have helped me
               become a more efficient developer

Files
•/wp-includes/pluggable.php
My Tipping Point MVPs
 Some of the most helpful aspects of WP core that have helped me
               become a more efficient developer

Files
•/wp-includes/pluggable.php
•/wp-includes/capabilities.php
My Tipping Point MVPs
 Some of the most helpful aspects of WP core that have helped me
               become a more efficient developer

Files
•/wp-includes/pluggable.php
•/wp-includes/capabilities.php
•/wp-includes/default-filters.php
My Tipping Point MVPs
 Some of the most helpful aspects of WP core that have helped me
               become a more efficient developer

Files
•/wp-includes/pluggable.php
•/wp-includes/capabilities.php
•/wp-includes/default-filters.php
•/wp-includes/query.php
My Tipping Point MVPs
 Some of the most helpful aspects of WP core that have helped me
               become a more efficient developer

Files
•/wp-includes/pluggable.php
•/wp-includes/capabilities.php
•/wp-includes/default-filters.php
•/wp-includes/query.php
•/wp-settings.php
My Tipping Point MVPs
Some of the most helpful aspects of the WP community that have
         helped me become a more efficient developer

Web
My Tipping Point MVPs
  Some of the most helpful aspects of the WP community that have
           helped me become a more efficient developer

Web
•http://wordpress.org/forums
My Tipping Point MVPs
  Some of the most helpful aspects of the WP community that have
           helped me become a more efficient developer

Web
•http://wordpress.org/forums
•http://codex.wordpress.org/
My Tipping Point MVPs
  Some of the most helpful aspects of the WP community that have
           helped me become a more efficient developer

Web
•http://wordpress.org/forums
•http://codex.wordpress.org/
•http://codex.wordpress.org/Mailing_Lists
My Tipping Point MVPs
  Some of the most helpful aspects of the WP community that have
           helped me become a more efficient developer

Web
•http://wordpress.org/forums
•http://codex.wordpress.org/
•http://codex.wordpress.org/Mailing_Lists
•http://phpdoc.wordpress.org
My Tipping Point MVPs
  Some of the most helpful aspects of the WP community that have
           helped me become a more efficient developer

Web
•http://wordpress.org/forums
•http://codex.wordpress.org/
•http://codex.wordpress.org/Mailing_Lists
•http://phpdoc.wordpress.org
•http://twitter.com
My Tipping Point MVPs
  Some of the most helpful aspects of the WP community that have
           helped me become a more efficient developer

Web
•http://wordpress.org/forums
•http://codex.wordpress.org/
•http://codex.wordpress.org/Mailing_Lists
•http://phpdoc.wordpress.org
•http://twitter.com
•http://wpdevel.wordpress.com/
My Tipping Point MVPs
  Some of the most helpful aspects of the WP community that have
           helped me become a more efficient developer

Web
•http://wordpress.org/forums
•http://codex.wordpress.org/
•http://codex.wordpress.org/Mailing_Lists
•http://phpdoc.wordpress.org
•http://twitter.com
•http://wpdevel.wordpress.com/
•#wordpress and #wordpress-dev
My Tipping Point MVPs
Some of the most helpful aspects of the WP community that have
         helped me become a more efficient developer

Not Web
My Tipping Point MVPs
  Some of the most helpful aspects of the WP community that have
           helped me become a more efficient developer

Not Web
•WordPress for Dummies - @LisaSabinWilson
My Tipping Point MVPs
  Some of the most helpful aspects of the WP community that have
           helped me become a more efficient developer

Not Web
•WordPress for Dummies - @LisaSabinWilson
•The WordPress Bible - @technosailor
My Tipping Point MVPs
  Some of the most helpful aspects of the WP community that have
           helped me become a more efficient developer

Not Web
•WordPress for Dummies - @LisaSabinWilson
•The WordPress Bible - @technosailor
•Professional WordPress - @williamsba & @mirmillo
My Tipping Point MVPs
  Some of the most helpful aspects of the WP community that have
           helped me become a more efficient developer

Not Web
•WordPress for Dummies - @LisaSabinWilson
•The WordPress Bible - @technosailor
•Professional WordPress - @williamsba & @mirmillo
•Raleigh WP Meetup - http://meetup.com/Raleigh-WordPress-Meetup-Group/
BEYOND WP-CONTENT
    WordCamp Raleigh | 2010
        @glennansley

Más contenido relacionado

La actualidad más candente

WordPress Customization and Security
WordPress Customization and SecurityWordPress Customization and Security
WordPress Customization and Security
Joe Casabona
 
Parsing strange v4
Parsing strange v4Parsing strange v4
Parsing strange v4
Hal Stern
 
Creating Drupal A Module
Creating Drupal A ModuleCreating Drupal A Module
Creating Drupal A Module
arcaneadam
 
WordPress as a CMS - Case Study of an Organizational Intranet
WordPress as a CMS - Case Study of an Organizational IntranetWordPress as a CMS - Case Study of an Organizational Intranet
WordPress as a CMS - Case Study of an Organizational Intranet
Tech Liminal
 
Open Source CMS Playroom
Open Source CMS PlayroomOpen Source CMS Playroom
Open Source CMS Playroom
librarywebchic
 

La actualidad más candente (20)

WordPress Customization and Security
WordPress Customization and SecurityWordPress Customization and Security
WordPress Customization and Security
 
Parsing strange v4
Parsing strange v4Parsing strange v4
Parsing strange v4
 
Ebook Accessibility: Why, How, and What For - ebookcraft 2016 - Laura Brady
Ebook Accessibility: Why, How, and What For - ebookcraft 2016 - Laura BradyEbook Accessibility: Why, How, and What For - ebookcraft 2016 - Laura Brady
Ebook Accessibility: Why, How, and What For - ebookcraft 2016 - Laura Brady
 
2-5-14 “DSpace User Interface Innovation” Presentation Slides
2-5-14 “DSpace User Interface Innovation” Presentation Slides2-5-14 “DSpace User Interface Innovation” Presentation Slides
2-5-14 “DSpace User Interface Innovation” Presentation Slides
 
flickr's architecture & php
flickr's architecture & php flickr's architecture & php
flickr's architecture & php
 
WordPress Template Hierarchy
WordPress Template HierarchyWordPress Template Hierarchy
WordPress Template Hierarchy
 
WordPress Template hierarchy
WordPress Template hierarchyWordPress Template hierarchy
WordPress Template hierarchy
 
EPUB vs. WEB: A Cautionary Tale - ebookcraft 2016 - Tzviya Siegman & Dave Cramer
EPUB vs. WEB: A Cautionary Tale - ebookcraft 2016 - Tzviya Siegman & Dave CramerEPUB vs. WEB: A Cautionary Tale - ebookcraft 2016 - Tzviya Siegman & Dave Cramer
EPUB vs. WEB: A Cautionary Tale - ebookcraft 2016 - Tzviya Siegman & Dave Cramer
 
Ebooks without Vendors: Using Open Source Software to Create and Share Meanin...
Ebooks without Vendors: Using Open Source Software to Create and Share Meanin...Ebooks without Vendors: Using Open Source Software to Create and Share Meanin...
Ebooks without Vendors: Using Open Source Software to Create and Share Meanin...
 
Creating Drupal A Module
Creating Drupal A ModuleCreating Drupal A Module
Creating Drupal A Module
 
WordPress as a CMS - Case Study of an Organizational Intranet
WordPress as a CMS - Case Study of an Organizational IntranetWordPress as a CMS - Case Study of an Organizational Intranet
WordPress as a CMS - Case Study of an Organizational Intranet
 
Ready. Set. Drupal! An Intro to Drupal 8, Part 2
Ready. Set. Drupal! An Intro to Drupal 8, Part 2Ready. Set. Drupal! An Intro to Drupal 8, Part 2
Ready. Set. Drupal! An Intro to Drupal 8, Part 2
 
Design todevelop
Design todevelopDesign todevelop
Design todevelop
 
Introduction to Apache Solr
Introduction to Apache SolrIntroduction to Apache Solr
Introduction to Apache Solr
 
Grok Drupal (7) Theming (presented at DrupalCon San Francisco)
Grok Drupal (7) Theming (presented at DrupalCon San Francisco)Grok Drupal (7) Theming (presented at DrupalCon San Francisco)
Grok Drupal (7) Theming (presented at DrupalCon San Francisco)
 
You Want to Go XML-First: Now What? Building an In-House XML-First Workflow -...
You Want to Go XML-First: Now What? Building an In-House XML-First Workflow -...You Want to Go XML-First: Now What? Building an In-House XML-First Workflow -...
You Want to Go XML-First: Now What? Building an In-House XML-First Workflow -...
 
Wordpress template hierarchy
Wordpress template hierarchyWordpress template hierarchy
Wordpress template hierarchy
 
Open Source CMS Playroom
Open Source CMS PlayroomOpen Source CMS Playroom
Open Source CMS Playroom
 
Geekend 2012 - Jumping Into Tumblr Theme Development
Geekend 2012 - Jumping Into Tumblr Theme DevelopmentGeekend 2012 - Jumping Into Tumblr Theme Development
Geekend 2012 - Jumping Into Tumblr Theme Development
 
Slug: A Semantic Web Crawler
Slug: A Semantic Web CrawlerSlug: A Semantic Web Crawler
Slug: A Semantic Web Crawler
 

Similar a Beyond WP-CONTENT | #WCRaleigh

Phpworks enterprise-php-1227605806710884-9
Phpworks enterprise-php-1227605806710884-9Phpworks enterprise-php-1227605806710884-9
Phpworks enterprise-php-1227605806710884-9
PrinceGuru MS
 
WP-CLI Talk from WordCamp Montreal
WP-CLI Talk from WordCamp MontrealWP-CLI Talk from WordCamp Montreal
WP-CLI Talk from WordCamp Montreal
Shawn Hooper
 
Php training in bhubaneswar
Php training in bhubaneswar Php training in bhubaneswar
Php training in bhubaneswar
litbbsr
 
Week01 jan19 introductionto_php
Week01 jan19 introductionto_phpWeek01 jan19 introductionto_php
Week01 jan19 introductionto_php
Jeanho Chu
 

Similar a Beyond WP-CONTENT | #WCRaleigh (20)

Introduction to PHP.pptx
Introduction to PHP.pptxIntroduction to PHP.pptx
Introduction to PHP.pptx
 
Phpworks enterprise-php-1227605806710884-9
Phpworks enterprise-php-1227605806710884-9Phpworks enterprise-php-1227605806710884-9
Phpworks enterprise-php-1227605806710884-9
 
Building the next generation of themes with WP Rig 2.0
Building the next generation of themes with WP Rig 2.0Building the next generation of themes with WP Rig 2.0
Building the next generation of themes with WP Rig 2.0
 
CUST-10 Customizing the Upload File(s) dialog in Alfresco Share
CUST-10 Customizing the Upload File(s) dialog in Alfresco ShareCUST-10 Customizing the Upload File(s) dialog in Alfresco Share
CUST-10 Customizing the Upload File(s) dialog in Alfresco Share
 
MCC Web Design Workshop
MCC Web Design WorkshopMCC Web Design Workshop
MCC Web Design Workshop
 
Evolution of PHP
Evolution of PHPEvolution of PHP
Evolution of PHP
 
WP-CLI Talk from WordCamp Montreal
WP-CLI Talk from WordCamp MontrealWP-CLI Talk from WordCamp Montreal
WP-CLI Talk from WordCamp Montreal
 
Content Management Systems and Refactoring - Drupal, WordPress and eZ Publish
Content Management Systems and Refactoring - Drupal, WordPress and eZ PublishContent Management Systems and Refactoring - Drupal, WordPress and eZ Publish
Content Management Systems and Refactoring - Drupal, WordPress and eZ Publish
 
WordPress Themes and Plugins
WordPress Themes and PluginsWordPress Themes and Plugins
WordPress Themes and Plugins
 
Php training in bhubaneswar
Php training in bhubaneswar Php training in bhubaneswar
Php training in bhubaneswar
 
Php training in bhubaneswar
Php training in bhubaneswar Php training in bhubaneswar
Php training in bhubaneswar
 
Educause 2014: Building Academic Websites (in the Real World)
Educause 2014: Building Academic Websites (in the Real World)Educause 2014: Building Academic Websites (in the Real World)
Educause 2014: Building Academic Websites (in the Real World)
 
Welcome to computer programmer 2
Welcome to computer programmer 2Welcome to computer programmer 2
Welcome to computer programmer 2
 
Hhvm and wordpress
Hhvm and wordpressHhvm and wordpress
Hhvm and wordpress
 
Php
PhpPhp
Php
 
Week01 jan19 introductionto_php
Week01 jan19 introductionto_phpWeek01 jan19 introductionto_php
Week01 jan19 introductionto_php
 
Wp 3hr-course
Wp 3hr-courseWp 3hr-course
Wp 3hr-course
 
HyperDB, MySQL Performance, & Flavors of MySQL
HyperDB, MySQL Performance, & Flavors of MySQLHyperDB, MySQL Performance, & Flavors of MySQL
HyperDB, MySQL Performance, & Flavors of MySQL
 
Introduction to Penetration Testing
Introduction to Penetration TestingIntroduction to Penetration Testing
Introduction to Penetration Testing
 
My Site is slow - Drupal Camp London 2013
My Site is slow - Drupal Camp London 2013My Site is slow - Drupal Camp London 2013
My Site is slow - Drupal Camp London 2013
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 

Beyond WP-CONTENT | #WCRaleigh

  • 1. BEYOND WP-CONTENT WordCamp Raleigh | 2010 @glennansley
  • 5. PURPOSE •WordPress file structure •WordPress programing logic •Web and not-web resources
  • 6. WORDPRESS FILE STRUCTURE Root Directory This is the starting point for your file system •Notable Files •index.php •wp-config.php •wp-load.php •xmlrpc.php
  • 7. WORDPRESS FILE STRUCTURE Root Directory This is the starting point for your file system •Notable Folders •wp-content •wp-includes •wp-admin
  • 8. WORDPRESS FILE STRUCTURE WP-Content This is folder contains all the files unique to your site. •Notable Folders •plugins •themes •uploads •upgrades
  • 9. WORDPRESS FILE STRUCTURE WP Admin This is the location for almost everything admin related. •Notable Files •admin.php •admin-header.php •options-*.php •edit-*.php
  • 10. WORDPRESS FILE STRUCTURE WP Admin This is the location for almost everything admin related. •Notable Folders •Notable Files in /includes •/includes •admin.php •meta-boxes.php •post.php •user.php
  • 11. WORDPRESS FILE STRUCTURE WP-INCLUDES This folder contains most of the heavy lifting for WP •Notable Files •class-http.php •functions.php •class-phpmailer.php •general-template.php •classes.php •pluggable.php •default-filters.php •query.php •formatting.php •user.php
  • 12. WordPress Programming Logic How does PHP traverse the WP file structure?
  • 13. WordPress Programming Logic How does PHP traverse the WP file structure?
  • 14. WordPress Programming Logic How does PHP traverse the WP file structure? • The first file is loaded, checked for errors, and processed
  • 15. WordPress Programming Logic How does PHP traverse the WP file structure? • The first file is loaded, checked for errors, and processed • It hits a PHP include, loads the requested file and processes down the script
  • 16. WordPress Programming Logic How does PHP traverse the WP file structure? • The first file is loaded, checked for errors, and processed • It hits a PHP include, loads the requested file and processes down the script • It in turn hits another include which processes down through two more includes
  • 17. WordPress Programming Logic How does PHP traverse the WP file structure? • The first file is loaded, checked for errors, and processed • It hits a PHP include, loads the requested file and processes down the script • It in turn hits another include which processes down through two more includes • At this point PHP is still processing data and there are no includes at the bottom of this file
  • 18. WordPress Programming Logic How does PHP traverse the WP file structure? • The first file is loaded, checked for errors, and processed • It hits a PHP include, loads the requested file and processes down the script • It in turn hits another include which processes down through two more includes • At this point PHP is still processing data and there are no includes at the bottom of this file • So PHP returns to the next line in the file we left and continues to process to the end of that file
  • 19. WordPress Programming Logic How does PHP traverse the WP file structure? • The first file is loaded, checked for errors, and processed • It hits a PHP include, loads the requested file and processes down the script • It in turn hits another include which processes down through two more includes • At this point PHP is still processing data and there are no includes at the bottom of this file • So PHP returns to the next line in the file we left and continues to process to the end of that file • At the end of file two, PHP returns to the next line in file one and continues to the end of the script.
  • 20. WordPress Programming Logic How does PHP traverse the WP file structure?
  • 21. WordPress Programming Logic How does PHP traverse the WP file structure? • wp-blog-header.php is a great reference for this illustration.
  • 22. WordPress Programming Logic How does PHP traverse the WP file structure? • wp-blog-header.php is a great reference for this illustration.
  • 23. WordPress Programming Logic How does PHP traverse the WP file structure? • wp-blog-header.php is a great reference for this illustration. Load the data
  • 24. WordPress Programming Logic How does PHP traverse the WP file structure? • wp-blog-header.php is a great reference for this illustration. Load the data Deliver the data
  • 26. WordPress Programming Logic Quick review so far •WordPress is made up of several files organized in folders.
  • 27. WordPress Programming Logic Quick review so far •WordPress is made up of several files organized in folders. •/wp-content is where developers make most modifications.
  • 28. WordPress Programming Logic Quick review so far •WordPress is made up of several files organized in folders. •/wp-content is where developers make most modifications. •PHP traverses this file structure in a logical manner, including only what is necessary for the current action.
  • 29. WordPress Programming Logic What happens as PHP traverses the WP file structure?
  • 30. WordPress Programming Logic What happens as PHP traverses the WP file structure? •Includes requested PHP scripts.
  • 31. WordPress Programming Logic What happens as PHP traverses the WP file structure? •Includes requested PHP scripts. •Loads functions into the server’s memory
  • 32. WordPress Programming Logic What happens as PHP traverses the WP file structure? •Includes requested PHP scripts. •Loads functions into the server’s memory •Loads data into the server’s memory •REQUESTS •Database info •COOKIES and SESSIONS •CACHE •Constants, variables, class objects
  • 33. WordPress Programming Logic What happens as PHP traverses the WP file structure?
  • 34. WordPress Programming Logic What happens as PHP traverses the WP file structure? •Invokes actions on the data in your server’s memory
  • 35. WordPress Programming Logic What happens as PHP traverses the WP file structure? •Invokes actions on the data in your server’s memory •Spitting HTML out to the browser
  • 36. WordPress Programming Logic What happens as PHP traverses the WP file structure? •Invokes actions on the data in your server’s memory •Spitting HTML out to the browser •Executing core PHP functions ( explode(), unset(), etc ).
  • 37. WordPress Programming Logic What happens as PHP traverses the WP file structure? •Invokes actions on the data in your server’s memory •Spitting HTML out to the browser •Executing core PHP functions ( explode(), unset(), etc ). •Executing WordPress defined functions already in memory.
  • 38. WordPress Programming Logic What happens as PHP traverses the WP file structure? •Invokes actions on the data in your server’s memory •Spitting HTML out to the browser •Executing core PHP functions ( explode(), unset(), etc ). •Executing WordPress defined functions already in memory. •Making remote requests to other scripts or web services
  • 39. WordPress Programming Logic Common errors based on a weak grasp of this behavior
  • 40. WordPress Programming Logic Common errors based on a weak grasp of this behavior •Undefined data (objects, variables, constants, etc)
  • 41. WordPress Programming Logic Common errors based on a weak grasp of this behavior •Undefined data (objects, variables, constants, etc) •Undefined functions
  • 42. WordPress Programming Logic Common errors based on a weak grasp of this behavior •Undefined data (objects, variables, constants, etc) •Undefined functions •Undefined class properties
  • 43. WordPress Programming Logic Common errors based on a weak grasp of this behavior •Undefined data (objects, variables, constants, etc) •Undefined functions •Undefined class properties •Missed hooks
  • 44. WordPress Programming Logic Common errors based on a weak grasp of this behavior •Undefined data (objects, variables, constants, etc) •Undefined functions •Undefined class properties •Missed hooks It’s all about the timing!
  • 45. My Tipping Point MVPs Some of the most helpful aspects of WP core that have helped me become a more efficient developer Hooks
  • 46. My Tipping Point MVPs Some of the most helpful aspects of WP core that have helped me become a more efficient developer Hooks •init (action)
  • 47. My Tipping Point MVPs Some of the most helpful aspects of WP core that have helped me become a more efficient developer Hooks •init (action) •admin_init (action)
  • 48. My Tipping Point MVPs Some of the most helpful aspects of WP core that have helped me become a more efficient developer Hooks •init (action) •admin_init (action) •template_redirect (action)
  • 49. My Tipping Point MVPs Some of the most helpful aspects of WP core that have helped me become a more efficient developer Hooks •init (action) •admin_init (action) •template_redirect (action) •plugins_loaded (action)
  • 50. My Tipping Point MVPs Some of the most helpful aspects of WP core that have helped me become a more efficient developer Functions
  • 51. My Tipping Point MVPs Some of the most helpful aspects of WP core that have helped me become a more efficient developer Functions •&get_posts
  • 52. My Tipping Point MVPs Some of the most helpful aspects of WP core that have helped me become a more efficient developer Functions •&get_posts •register_* ( importers, settings, widgets, posts, post types, taxonomies, menus )
  • 53. My Tipping Point MVPs Some of the most helpful aspects of WP core that have helped me become a more efficient developer Functions •&get_posts •register_* ( importers, settings, widgets, posts, post types, taxonomies, menus ) •helper functions ( get_the_title, get_permalink, etc )
  • 54. My Tipping Point MVPs Some of the most helpful aspects of WP core that have helped me become a more efficient developer Functions •&get_posts •register_* ( importers, settings, widgets, posts, post types, taxonomies, menus ) •helper functions ( get_the_title, get_permalink, etc ) •current_user_can
  • 55. My Tipping Point MVPs Some of the most helpful aspects of WP core that have helped me become a more efficient developer Functions •&get_posts •register_* ( importers, settings, widgets, posts, post types, taxonomies, menus ) •helper functions ( get_the_title, get_permalink, etc ) •current_user_can •wp_redirect
  • 56. My Tipping Point MVPs Some of the most helpful aspects of WP core that have helped me become a more efficient developer Classes
  • 57. My Tipping Point MVPs Some of the most helpful aspects of WP core that have helped me become a more efficient developer Classes •WP_Query
  • 58. My Tipping Point MVPs Some of the most helpful aspects of WP core that have helped me become a more efficient developer Classes •WP_Query •WP_User
  • 59. My Tipping Point MVPs Some of the most helpful aspects of WP core that have helped me become a more efficient developer Classes •WP_Query •WP_User •WP_Error
  • 60. My Tipping Point MVPs Some of the most helpful aspects of WP core that have helped me become a more efficient developer Classes •WP_Query •WP_User •WP_Error •Wp_Roles
  • 61. My Tipping Point MVPs Some of the most helpful aspects of WP core that have helped me become a more efficient developer Classes •WP_Query •WP_User •WP_Error •Wp_Roles •WP_Rewrite
  • 62. My Tipping Point MVPs Some of the most helpful aspects of WP core that have helped me become a more efficient developer Classes •WP_Query •WP_User •WP_Error •Wp_Roles •WP_Rewrite •WP_Http
  • 63. My Tipping Point MVPs Some of the most helpful aspects of WP core that have helped me become a more efficient developer Classes •WP_Query •WP_User •WP_Error •Wp_Roles •WP_Rewrite •WP_Http •PHPMailer
  • 64. My Tipping Point MVPs Some of the most helpful aspects of WP core that have helped me become a more efficient developer Files
  • 65. My Tipping Point MVPs Some of the most helpful aspects of WP core that have helped me become a more efficient developer Files •/wp-includes/pluggable.php
  • 66. My Tipping Point MVPs Some of the most helpful aspects of WP core that have helped me become a more efficient developer Files •/wp-includes/pluggable.php •/wp-includes/capabilities.php
  • 67. My Tipping Point MVPs Some of the most helpful aspects of WP core that have helped me become a more efficient developer Files •/wp-includes/pluggable.php •/wp-includes/capabilities.php •/wp-includes/default-filters.php
  • 68. My Tipping Point MVPs Some of the most helpful aspects of WP core that have helped me become a more efficient developer Files •/wp-includes/pluggable.php •/wp-includes/capabilities.php •/wp-includes/default-filters.php •/wp-includes/query.php
  • 69. My Tipping Point MVPs Some of the most helpful aspects of WP core that have helped me become a more efficient developer Files •/wp-includes/pluggable.php •/wp-includes/capabilities.php •/wp-includes/default-filters.php •/wp-includes/query.php •/wp-settings.php
  • 70. My Tipping Point MVPs Some of the most helpful aspects of the WP community that have helped me become a more efficient developer Web
  • 71. My Tipping Point MVPs Some of the most helpful aspects of the WP community that have helped me become a more efficient developer Web •http://wordpress.org/forums
  • 72. My Tipping Point MVPs Some of the most helpful aspects of the WP community that have helped me become a more efficient developer Web •http://wordpress.org/forums •http://codex.wordpress.org/
  • 73. My Tipping Point MVPs Some of the most helpful aspects of the WP community that have helped me become a more efficient developer Web •http://wordpress.org/forums •http://codex.wordpress.org/ •http://codex.wordpress.org/Mailing_Lists
  • 74. My Tipping Point MVPs Some of the most helpful aspects of the WP community that have helped me become a more efficient developer Web •http://wordpress.org/forums •http://codex.wordpress.org/ •http://codex.wordpress.org/Mailing_Lists •http://phpdoc.wordpress.org
  • 75. My Tipping Point MVPs Some of the most helpful aspects of the WP community that have helped me become a more efficient developer Web •http://wordpress.org/forums •http://codex.wordpress.org/ •http://codex.wordpress.org/Mailing_Lists •http://phpdoc.wordpress.org •http://twitter.com
  • 76. My Tipping Point MVPs Some of the most helpful aspects of the WP community that have helped me become a more efficient developer Web •http://wordpress.org/forums •http://codex.wordpress.org/ •http://codex.wordpress.org/Mailing_Lists •http://phpdoc.wordpress.org •http://twitter.com •http://wpdevel.wordpress.com/
  • 77. My Tipping Point MVPs Some of the most helpful aspects of the WP community that have helped me become a more efficient developer Web •http://wordpress.org/forums •http://codex.wordpress.org/ •http://codex.wordpress.org/Mailing_Lists •http://phpdoc.wordpress.org •http://twitter.com •http://wpdevel.wordpress.com/ •#wordpress and #wordpress-dev
  • 78. My Tipping Point MVPs Some of the most helpful aspects of the WP community that have helped me become a more efficient developer Not Web
  • 79. My Tipping Point MVPs Some of the most helpful aspects of the WP community that have helped me become a more efficient developer Not Web •WordPress for Dummies - @LisaSabinWilson
  • 80. My Tipping Point MVPs Some of the most helpful aspects of the WP community that have helped me become a more efficient developer Not Web •WordPress for Dummies - @LisaSabinWilson •The WordPress Bible - @technosailor
  • 81. My Tipping Point MVPs Some of the most helpful aspects of the WP community that have helped me become a more efficient developer Not Web •WordPress for Dummies - @LisaSabinWilson •The WordPress Bible - @technosailor •Professional WordPress - @williamsba & @mirmillo
  • 82. My Tipping Point MVPs Some of the most helpful aspects of the WP community that have helped me become a more efficient developer Not Web •WordPress for Dummies - @LisaSabinWilson •The WordPress Bible - @technosailor •Professional WordPress - @williamsba & @mirmillo •Raleigh WP Meetup - http://meetup.com/Raleigh-WordPress-Meetup-Group/
  • 83. BEYOND WP-CONTENT WordCamp Raleigh | 2010 @glennansley

Notas del editor