转:wordpress源码-目录-文件调用关系

WordPress是一个单入口的文件,所有的前端处理都必须经过index.php,这是通过修改web服务器的rewrite规则来实现的。这种做法的好处是显而易见的,这样URL更好看,不必为每一个url新建一个文件。

我们看看wp大致的文件调用是什么样子的。

wordpress可以分为3个阶段,

一是初始化阶段,即初始化常量、环境、加载核心文件等等;

二是内容处理阶段,即根据用户的请求调用相关函数获取和处理数据,为前端展示准备数据;

三是主题应用阶段,在这个阶段,需要展示的数据已经准备完毕,需要根据用户的请求加载相应的主题模板,即对主题进行路由。

经过这三各阶段,用户请求的页面就可以完全的展现出来了。从上图可以看到wp的初始化阶段相当的繁琐。

详细内容可转至 http://blog.csdn.net/liujiyong7/article/details/8037843 查看。

 

另:<?php bloginfo(‘url’); ?> 的作用是 返回wordpress博客的真实地址

18 thoughts on “转:wordpress源码-目录-文件调用关系

  1. Facebook大數據系統 – 外貿精準數據必備 – 年費會員送Facebook全功能自動營銷軟件
    官方網站: http://www.facebookbigdata.com/
    外貿全功能自動化營銷軟件 – https://www.snsep.com/
    查詢:
    QQ: 3204290153
    微信: MaggieLiHK

    FaceBook Group 數據採集
    精準FaceBook Group用戶數據採集,無需翻牆,無需Facebook賬號,輸入搜索關鍵字加入採集隊列即可自動採集,還可以根據Group ID精準採集,整個流程操作簡單,用戶數據包括用戶姓名,郵箱,電話,生日,國家等十幾個欄位,採集完數據後可壹鍵導出cvs文檔,簡單快捷!

    FaceBook Page 數據採集
    根據輸入搜索關鍵字搜索出相應的Facebook Page,自動採集Page下所有帖子評論的用戶,還可以根據Page ID精準採集,整個流程無需翻牆,無需Facebook賬號,採集的數據包括用戶姓名,郵箱,電話,生日,國家等十幾個欄位,採集完數據後可壹鍵導出cvs文檔,簡單快捷!

    用戶數據
    採集到的用戶資料包括FBID,FBUserID,Username,First Name,Last Name,Email,Phone,Gender,Website,Birthday,Location,Link,Likes,Relationship Status,Updated Time,Can Post,Mission,Talking About Count,Published,About,Description

    Facebook全功能自動營銷軟件包含「發佈」與「採集」兩大模組,功能含跨數十種在Facebook裡所需要的營銷功能,幾乎能滿足所有產品/服務推廣需求。
    發佈模組包含批量加好友(支持UID批配)、加小組、接受/取消好友請求、推文、變量信息發佈、養號、Tag標記好友、批量私訊、自動回復貼文/私訊排程、批量粉絲頁按贊/邀請好友按贊、推(頂)小組貼文、自動分享/按贊貼文、粉絲主頁管理等全功能營銷任務。
    採集模組核心採用Facebook進階Graph Search語法,能夠有效精準採集專頁、小組、小組成員、貼文互動(貼文贊、分享、評論)用戶、粉絲主頁詳細數據(郵箱/電話等)、用戶詳細數據(郵箱/電話等)、直播間觀眾、Graph Search批配用戶等專頁採集功能。
    系統支持多帳號同時批量排程任務且無帳號管理上限。可掛Proxy代理IP實現一帳號一IP,同時支持多種帳號登錄模式,包含 Android / iOS手機APP模式、Cookie模式、PC瀏覽器模式、FB開發者APP模式、Token等登錄模式,完整的帳號管理功能。

    [發佈功能列表]
    快速批量獲取你加入的小組清單,朋友清單,粉絲主頁清單…
    關鍵字搜索小組、檢查狀態、批量加入/退出小組、小組類型、成員計數、條件篩選、開啟/關閉小組通知、小組發文是否需審核…
    通過批量邀請拉好友進小組
    將文字/鏈結,單/多張圖片,或營銷信息批量發佈到小組,甚至將相簿發佈到小組。
    發佈圖片或圖片+視頻到小組,好友動態牆,粉絲主頁,個人動態牆。
    在Facebook上直播,可自定義導入視頻資源(視頻檔,Facebook視頻鏈接,YouTube鏈接,屏幕錄製)。
    直播自動排程(可指定本地端視頻)
    分享貼文到小組、粉絲主面,好友動態牆,個人主頁
    自動回復個人主頁、粉絲主頁貼文評論/私訊(支持通過特定關鍵字指定回復內容)
    自動接受好友邀請、邀請加入小組、粉絲主頁按贊邀請
    批量自動對指定用戶貼文、小組貼文、粉絲主頁貼文按贊
    自動戳(Poke)好友,自動對好友生日快樂,自然增加帳戶互動率。
    個別或批量添加帳戶,支持多種登陸方式:使用瀏覽器登錄,模擬手機(Android或IOS應用程序)登錄,Cookies登陸、Token登陸。
    貼文指定或隨機標記(Tag)朋友。
    將信息,單張或多張圖片發佈到個人動態或朋友動態。
    向好友批量發送私訊。
    支持隨機發送信息,鏈接,圖片,視頻,預防Facebook檢測為垃圾郵件。
    買賣小組添加銷售貼文
    分享貼文/相冊到小組、粉絲主頁、好友時間線……
    關鍵字搜索用戶名,自動向用戶發送好友邀請。批量取消已送出的好友邀請。擷取好友邀請,可批量接受或拒絕。
    關鍵字查找粉絲主頁,並獲取粉絲主頁資訊(如粉絲數,網站,郵箱,電話)。批量邀請朋友按贊粉絲主頁。
    將信息、圖片發佈到粉絲主頁。
    自動頂小組貼文(將你在小組的貼文頂到小組動態頂部)。
    搜索活動(Event)。參加活動、批量邀請好友參加活動。
    發佈信息,單張照片到活動(Event)。
    自動排程貼文發佈到任何地方(小組,粉絲主頁,好友動態,私訊,評論)。
    自動批量加入小組。
    支持設置任務排程時間間隔,降低Facebook偵測機率。
    支持批量Facebook帳號(無上限)。每個帳戶支持proxy代理。每個帳號可獨立管理運作。

    [採集功能列表]
    人物(可依性別、地區、粉絲頁成員、小組成員等條件查詢)
    貼文(可依關鍵詞、興趣、粉絲主頁、時間等條件查詢)
    粉絲主頁(可依關鍵詞、主頁分類、興趣等條件查詢)
    小組(可依公開/封閉/隱私、關鍵詞、主題等條件查詢)
    活動(可依關鍵詞查詢)
    地點(可依關鍵詞、地標、曾經到訪等條件查詢)
    APP(可以關鍵詞、分類、相似於某APP等條件查詢)
    採集專頁貼文內容數據
    採集專頁互動用戶數據
    UID反查用戶資料
    採集小組成員
    關鍵詞找FB用戶
    採集直播間互動觀眾
    Graph Search鏈結採集用戶UID
    採集直播間互動觀眾
    ID反查粉絲主頁資料
    ID反查小組資料
    ID反查貼文內容
    ID反查地點
    ID反查活動

  2. I’m extremely inspired together with your writing talents as
    neatly as with the format for your blog. Is that this a
    paid subject or did you modify it your self?
    Either way stay up the excellent quality writing, it is
    rare to see a great weblog like this one these days..

  3. Hello There. I found your blog using msn. This is a very
    well written article. I will be sure to bookmark it and come back
    to read more of your useful info. Thanks for the post.

    I’ll certainly comeback.

  4. Hi there! I could have sworn I’ve been to this site
    before but after browsing through some of the post I realized
    it’s new to me. Nonetheless, I’m definitely happy I found it and I’ll be bookmarking and checking back frequently!

  5. We can search for, in order to find, any information inside of seconds, we can talk with our close
    friends and distant acquaintances on a variety of sociall networks, we can broadcast our feeling
    towards the whole world, and we could invite them to read or view our
    opinions (and have acquired it for). Search engines arre mking all of it the greater easier for those to find business, buut it’s
    essential for businesses to being visible over these spaces to ensure
    that to get potential customers. Clean normal water gained the third
    spot,having a fridge the 4th while NHS bagged the sixth spot.

  6. Hi there are using WordPress for your blog platform? I’m new to the blog world but
    I’m trying to get started and create my own. Do you require any coding expertise to make your own blog?
    Any help would be really appreciated!

  7. We’re having coffee at Nylon Coffee Roasters on Everton Park in Singapore.
    I’m having black coffee, he’s possessing a cappuccino. They are handsome.
    Brown hair slicked back, glasses that suited his face, hazel eyes and the most wonderful lips I’ve seen. They’re quality,
    with incredible arms as well as a chest that stands apart within this sweater.
    We’re standing ahead of one another referring to our
    way of life, what you want money for hard times, what we’re in search of on another person.
    He starts telling me that he’s been rejected plenty of times.

    ‘Why Andrew? You’re so handsome. I’d never reject you ‘, I believe that
    He smiles at me, biting his lip.

    ‘Oh, I do not know. Everything happens for reasons right.
    But inform me, would you reject me, do you Ana?’ He said.

    ‘No, how could I?’ , I replied

    “So, you would not mind if I kissed you right now?’ he stated as I recieve far better him and kiss him.

    ‘The next time don’t ask, simply do it.’ I reply.

    ‘I enjoy how you will think.’ , he said.

    Meanwhile, I start scrubbing my your back heel in their leg, massaging it slowly. ‘So what can you enjoy in females? And, Andrew, don’t spare me the details.’ I ask.

    ‘I adore determined women. Someone to know what we want. Someone that won’t say yes just because I said yes. Someone who’s not scared of trying new things,’ he says. ‘I’m never afraid of attempting new stuff, especially on the subject of making a new challenge in the sack ‘, I intimate ‘And I enjoy girls that are direct, who cut from the chase, like you merely did. To generally be
    honest, that is a huge turn on.

发表评论

电子邮件地址不会被公开。 必填项已用*标注