跳至主要內容

賽門的 WordPress 學習筆記

  • 首頁
  • WordPress 是什麼?
  • 關於 wordpress
  • 函數 Function
  • 聯絡我

register_rest_route

WP-AJAX 和 WP REST API 寫法比較

2020-12-212020-03-31 由 simon (賽門)

在 WordPress 的非同步請求中,常使用 admin-ajax.php 這個方式,直到了 4.4 引入新的 WP REST API。

閱讀更多

分類 Action Hook, REST API 標籤 register_rest_route, rest_api_init, wp_ajax, wp_ajax_nopriv 發表留言

你想要找什麼?

點廣告贊助我

近期文章

  • 取消文章分頁功能
  • 為控制台的選單新增子選單
  • 為控制台新增最上層選單
  • WordPress 如何更改文章分類的排序 (orderby)
  • 如何得到頁面要求的 do_action 清單
  • WordPress 5.5 新功能 sitemap 如何自訂教學
  • WordPress 抓取遠端資料方法 wp_remote_get, wp_remote_post
  • 使用 WP-CLI 管理 WordPress – 安裝 WP-CLI 篇
  • rest_post_query 過濾查詢參數用法
  • REST API Endpoint

分類

  • Action Hook (7)
  • Filter Hook (7)
  • REST API (3)
  • 函數 Function (32)
  • 圖片 image (6)
  • 系統 System (20)

標籤

add_action add_filter add_shortcode add_theme_support admin_menu after_setup_theme bloginfo css current_user_can DB define get_bloginfo get_num_queries get_option get_permalink get_posts get_post_thumbnail_id get_template_part get_the_title gutenberg has_post_thumbnail hosting javascript jquery mysql openshift path post_thumbnail_html remove_action rest RWD setup_postdata the_content the_post_thumbnail timer_stop url vps wp_deregister_script wp_enqueue_script wp_enqueue_style wp_footer wp_get_attachment_image_src wp_head wp_register_script wp_reset_postdata

近期留言

  • 「simon (賽門)」在〈幫 wordpress 文章編輯器加入可選擇字型〉發佈留言
  • 「牙牙」在〈幫 wordpress 文章編輯器加入可選擇字型〉發佈留言
  • 「simon」在〈解決 PageSpeed Insights 顯示 javascript 禁止轉譯 (Render)〉發佈留言
  • 「simon (賽門)」在〈wordpress 內建的完美中文截字函式 wp_trim_words〉發佈留言
  • 「S.R. Zeng」在〈wordpress 內建的完美中文截字函式 wp_trim_words〉發佈留言

訂閱最新文章通知

輸入你的電子郵件地址訂閱網站的新文章,使用電子郵件接收新通知。

分類

  • Action Hook (7)
  • Filter Hook (7)
  • REST API (3)
  • 函數 Function (32)
  • 圖片 image (6)
  • 系統 System (20)

其他相關網站

  • Site Design and Layout
  • WordPress 常用模板函数速查表
  • wordpress大學
  • WP TAVERN
  • 粗胚的佈景
  • 設計 wordpress 必查
  • 賽門不是門
© 2021 賽門的 WordPress 學習筆記 • Built with GeneratePress