Php WordPress相当于Drupal';s url()

Php WordPress相当于Drupal';s url(),php,wordpress,drupal,url-rewriting,Php,Wordpress,Drupal,Url Rewriting,Drupal是否有与WordPress等效的函数?根据Drupal函数的文档,我认为最接近的是site\u url() 根据drupal函数的文档,我认为最接近的是site_url() 查看wp includes中的文件link template.php 它充满了有用的URL函数!(也可以查看category template.php中的get\u category\u link()和get\u tag\u link()) 查看wp includes中的文件link template.php 它

Drupal是否有与WordPress等效的函数?

根据Drupal函数的文档,我认为最接近的是site\u url()


根据drupal函数的文档,我认为最接近的是site_url()


查看
wp includes
中的文件
link template.php


它充满了有用的URL函数!(也可以查看
category template.php
中的
get\u category\u link()
get\u tag\u link()

查看
wp includes
中的文件
link template.php

它充满了有用的URL函数!(也可以查看
category template.php
中的
get\u category\u link()
get\u tag\u link()

/**
 * Retrieve the site url for the current site.
 *
 * Returns the 'site_url' option with the appropriate protocol,  'https' if
 * is_ssl() and 'http' otherwise. If $scheme is 'http' or 'https', is_ssl() is
 * overridden.
 *
 * @package WordPress
 * @since 2.6.0
 *
 * @uses get_site_url()
 *
 * @param string $path Optional. Path relative to the site url.
 * @param string $scheme Optional. Scheme to give the site url context. Currently 'http','https', 'login', 'login_post', or 'admin'.
 * @return string Site url link with optional path appended.
*/
site_url(string path, string scheme);