开发者 | norcross |
---|---|
更新时间 | 2016年2月25日 22:46 |
捐献地址: | 去捐款 |
PHP版本: | 3.6 及以上 |
WordPress版本: | 4.4 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
yourls-link-creator
to the /wp-content/plugins/
directory.This plugin creates a shortlink (stored in the post meta table) for each post that can be used in sharing buttons, etc.
YOURLS is a self-hosted PHP based application that allows you to make your own custom shortlinks, similar to bit.ly and j.mp. Learn more about it here
Place the following code in your theme file (usually single.php) <?php yourls_display_box(); ?>
This is a limitation with the YOURLS API, as there is not a method yet to delete a link. The delete function has been added to the plugin to allow users to get the updated URL that they may have changed in the YOURLS admin panel
yourls_run_cron_jobs
filter to allow users to disable the cron jobyourls_after_url_save
action to post transitioning from future to publish (scheduled posts)yourls_after_url_save
action to fire when the custom URL is generated and storedyourls_user_cap
filter for modifying default user capabilityyourls_settings_cap
filter for modifying settings page capabilityyourls_keyword_filter
filter for changing default keyword sanitationyourls_post_status
filter to modify these (although not sure why you'd want to)yourls_strip_urls
to allow trailing slash removal (default is false)yourls_display_box
template tag to display front end boxget_yourls_shortlink
to return or echo the shortlinkwp_ozh_yourls_raw_url
to match previous plugin from Ozh