內容簡介
SDK WP DYNAMIC URL 可以幫助您定制 URL,而無需添加靜態 URL。它會自動提取 site_url(),並根據參數或未使用參數創建 URL。
它會在 WordPress 的“儀表板”->“設置”->“SDK WP DYNAMIC URL”中添加一個設置頁面,您可以在此定制設置,但目前正在開發中。它將會在未來的版本中推出。
用法
下載並提取 sdk-wp-dynamic-url.zip 到 wp-content/plugins/
通過 WordPress 的“插件”菜單啟用插件。
将短代码粘贴到您的文章或页面中。
如果您只想在文章中使用 site_url(),請使用:-
[sdk-site-url]
如果您想要 site_url() 的話,可以將 ‘path’ 參數留空。
對於終止 URL,您可以像這樣使用。
[sdk-site-url path="PATH_OF_IMAGE"]
使用示例:
[sdk-site-url path="/assets/images/sdk.jpg"]
上述短代码將輸出:
http://your_domain_name.com/assets/images/sdk.jpg
對於 PHP 文件,您可以像這樣使用:
<?php do_shortcode('[SHORTCODE_HERE]'); ?>
外掛標籤
開發者團隊
原文外掛簡介
SDK WP DYNAMIC URL can help you to customzise the url without the hurdle of adding the static url. It automatically fetches the site_url() and create the URL based on parameters or without parameters.
It adds a settings page to “Dashboard”->”Settings”->”SDK WP DYNAMIC URL” where you can customize the settings but currently under development. It will be in future versions.
Usage
Download and extract sdk-wp-dynamic-url.zip to wp-content/plugins/
Activate the plugin through the ‘Plugins’ menu in WordPress.
Paste the shortcode in your posts or pages.
If you want only the site_url() in your posts, then use:-
[sdk-site-url]
You can leave the ‘path’ parameter as blank if you want only site_url().
For terminating URL’s You can use it like.
[sdk-site-url path="PATH_OF_IMAGE"]
Example Usage:-
[sdk-site-url path="/assets/images/sdk.jpg"]
The above shortcode will output.
http://your_domain_name.com/assets/images/sdk.jpg
For php files you can use this like.
