wp_link_query

過濾鉤子
apply_filters( 'wp_link_query', $results, $query )
引數
  • (array) $results { An array of associative arrays of query results. @type array ...$0 { @type int $ID Post ID. @type string $title The trimmed, escaped post title. @type string $permalink Post permalink. @type string $info A 'Y/m/d'-formatted date for 'post' post type, the 'singular_name' post type label otherwise. } }
    Required:
  • (array) $query An array of WP_Query arguments.
    Required:
定義位置
相關勾子
wp_link_query_argspost_link_categorywp_login_errorsparse_network_queryparse_site_query
相關方法
wp_login_urlis_main_querywp_link_pages_wp_link_pagewp_list_userswp_reset_query
引入
3.7.0
棄用
-

wp_link_query:這是 WordPress 內建的一個函式,用於執行連結查詢。它可以在 WordPress 後臺的連結頁面中查詢所有的連結。

過濾連結查詢結果。

允許修改返回的連結查詢結果。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$results = apply_filters( 'wp_link_query', $results, $query );
$results = apply_filters( 'wp_link_query', $results, $query );
$results = apply_filters( 'wp_link_query', $results, $query );

常見問題

FAQs
檢視更多 >