{"id":20283,"date":"2012-10-11T14:04:06","date_gmt":"2012-10-11T14:04:06","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/yourls-link-creator\/"},"modified":"2016-02-25T14:46:58","modified_gmt":"2016-02-25T14:46:58","slug":"yourls-link-creator","status":"publish","type":"plugin","link":"https:\/\/tah.wordpress.org\/plugins\/yourls-link-creator\/","author":4040050,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.1.1","stable_tag":"2.1.1","tested":"4.4.34","requires":"3.6","requires_php":"","requires_plugins":"","header_name":"YOURLS Link Creator","header_author":"Andrew Norcross","header_description":"","assets_banners_color":"ffffff","last_updated":"2016-02-25 14:46:58","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/andrewnorcross.com\/donate","header_plugin_uri":"http:\/\/andrewnorcross.com\/plugins\/yourls-link-creator\/","header_author_uri":"","rating":4.6,"author_block_rating":0,"active_installs":600,"downloads":26667,"num_ratings":13,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.06":"<ul>\n<li>The YOURLS metabox will not appear until a post has been published. This is to prevent empty or otherwise incorrect URLs from getting created.<\/li>\n<\/ul>","1.0":"<ul>\n<li>First release!<\/li>\n<\/ul>"},"ratings":{"1":"1","2":0,"3":"1","4":0,"5":"12"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1081567","resolution":"128x128","location":"assets"},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1081567","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":"1080386","resolution":"1544x500","location":"assets"},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1080386","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.01","1.02","1.03","1.04","1.05","1.06","1.07","1.08","1.09","2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9","2.1.0","2.1.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1080306","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1080306","resolution":"2","location":"assets"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1080306","resolution":"3","location":"assets"},"screenshot-4.png":{"filename":"screenshot-4.png","revision":"1080306","resolution":"4","location":"assets"}},"screenshots":{"1":"Metabox to create YOURLS link with optional keyword field","2":"Example of a post with a created link and click count","3":"Post column displaying click count","4":"Settings page"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[16954,544,12095],"plugin_category":[59],"plugin_contributors":[78337],"plugin_business_model":[],"class_list":["post-20283","plugin","type-plugin","status-publish","hentry","plugin_tags-custom-url","plugin_tags-shortlink","plugin_tags-yourls","plugin_category-utilities-and-tools","plugin_contributors-norcross","plugin_committers-norcross"],"banners":{"banner":"https:\/\/ps.w.org\/yourls-link-creator\/assets\/banner-772x250.png?rev=1080386","banner_2x":"https:\/\/ps.w.org\/yourls-link-creator\/assets\/banner-1544x500.png?rev=1080386","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/yourls-link-creator\/assets\/icon-128x128.png?rev=1081567","icon_2x":"https:\/\/ps.w.org\/yourls-link-creator\/assets\/icon-256x256.png?rev=1081567","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/yourls-link-creator\/assets\/screenshot-1.png?rev=1080306","caption":"Metabox to create YOURLS link with optional keyword field"},{"src":"https:\/\/ps.w.org\/yourls-link-creator\/assets\/screenshot-2.png?rev=1080306","caption":"Example of a post with a created link and click count"},{"src":"https:\/\/ps.w.org\/yourls-link-creator\/assets\/screenshot-3.png?rev=1080306","caption":"Post column displaying click count"},{"src":"https:\/\/ps.w.org\/yourls-link-creator\/assets\/screenshot-4.png?rev=1080306","caption":"Settings page"}],"raw_content":"<!--section=description-->\n<p>Creates a YOURLS generated shortlink on demand or when saving posts.<\/p>\n\n<p>Features:<\/p>\n\n<ul>\n<li>Optional custom keyword for link creation.<\/li>\n<li>Will retrieve existing URL if one has already been created.<\/li>\n<li>Click count appears on post menu<\/li>\n<li>Available for standard posts and custom post types.<\/li>\n<li>Optional filter for wp_shortlink<\/li>\n<li>Built in cron job will fetch updated click counts every hour.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>This section describes how to install the plugin and get it working.<\/p>\n\n<ol>\n<li>Upload <code>yourls-link-creator<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Navigate to the \"YOURLS Settings\" option in the Settings Menu.<\/li>\n<li>Enter your YOURLS custom URL and API key<\/li>\n<li>Enjoy!<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>What's this all about?<\/dt>\n<dd><p>This plugin creates a shortlink (stored in the post meta table) for each post that can be used in sharing buttons, etc.<\/p><\/dd>\n<dt>What is YOURLS?<\/dt>\n<dd><p>YOURLS is a self-hosted PHP based application that allows you to make your own custom shortlinks, similar to bit.ly and j.mp. <a href=\"http:\/\/yourls.org\/\" title=\"YOURLS download\">Learn more about it here<\/a><\/p><\/dd>\n<dt>How do I use the template tag?<\/dt>\n<dd><p>Place the following code in your theme file (usually single.php) <code>&lt;?php yourls_display_box(); ?&gt;<\/code><\/p><\/dd>\n<dt>The delete function doesn't remove the short URL from my YOURLS installation<\/dt>\n<dd><p>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<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.1.1 - 02\/25\/2016<\/h4>\n\n<ul>\n<li>added <code>yourls_run_cron_jobs<\/code> filter to allow users to disable the cron job<\/li>\n<\/ul>\n\n<h4>2.1.0 - 08\/06\/2015<\/h4>\n\n<ul>\n<li>added <code>yourls_after_url_save<\/code> action to post transitioning from future to publish (scheduled posts)<\/li>\n<\/ul>\n\n<h4>2.0.9 - 08\/03\/2015<\/h4>\n\n<ul>\n<li>added <code>yourls_after_url_save<\/code> action to fire when the custom URL is generated and stored<\/li>\n<\/ul>\n\n<h4>2.0.8 - 06\/19\/2015<\/h4>\n\n<ul>\n<li>added ability to set custom keyword prior to save<\/li>\n<li>added <code>yourls_user_cap<\/code> filter for modifying default user capability<\/li>\n<li>added <code>yourls_settings_cap<\/code> filter for modifying settings page capability<\/li>\n<li>added <code>yourls_keyword_filter<\/code> filter for changing default keyword sanitation<\/li>\n<li>added new legacy file to pick up old functions from Ozh's plugin<\/li>\n<li>added GitHub plugin updater support<\/li>\n<\/ul>\n\n<h4>2.0.7 - 02\/14\/2015<\/h4>\n\n<ul>\n<li>fixed bug with post row actions missing on drafts<\/li>\n<li>updated cron job scheduling<\/li>\n<\/ul>\n\n<h4>2.0.6 - 02\/13\/2015<\/h4>\n\n<ul>\n<li>added scheduled posts to available post status<\/li>\n<li>added <code>yourls_post_status<\/code> filter to modify these (although not sure why you'd want to)<\/li>\n<li>added function to create a link when a post is moved from 'scheduled' to 'publish' if one doesn't exist (requires setting update)<\/li>\n<li>added API status check sidebox to the settings page<\/li>\n<\/ul>\n\n<h4>2.0.5 - 02\/10\/2015<\/h4>\n\n<ul>\n<li>fixed API URL construction to account for installs in a subfolder<\/li>\n<li>added filter <code>yourls_strip_urls<\/code> to allow trailing slash removal (default is false)<\/li>\n<\/ul>\n\n<h4>2.0.4 - 02\/09\/2015<\/h4>\n\n<ul>\n<li>fixed API query args getting malformed before call<\/li>\n<li>fixed content title sanitation encoding<\/li>\n<li>forced POST method for API call and removed setting<\/li>\n<li>added bulk import function for existing data<\/li>\n<li>added <code>yourls_display_box<\/code> template tag to display front end box<\/li>\n<li>added <code>get_yourls_shortlink<\/code> to return or echo the shortlink<\/li>\n<li>added <code>wp_ozh_yourls_raw_url<\/code> to match previous plugin from Ozh<\/li>\n<\/ul>\n\n<h4>2.0.3 - 02\/05\/2015<\/h4>\n\n<ul>\n<li>added API key field show \/ hide to (hopefully) account for Chrome being aggressive on the field<\/li>\n<li>removed 'future' from array of post types to create items on save<\/li>\n<\/ul>\n\n<h4>2.0.2 - 02\/02\/2015<\/h4>\n\n<ul>\n<li>fixed bug with creating link on post save<\/li>\n<\/ul>\n\n<h4>2.0.1 - 02\/01\/2015<\/h4>\n\n<ul>\n<li>added post title submission to API call<\/li>\n<li>added option for using POST method instead of GET method to address API permission issues<\/li>\n<li>nonce ALL THE THINGS<\/li>\n<\/ul>\n\n<h4>2.0.0 - 02\/01\/2015<\/h4>\n\n<ul>\n<li>COMPLETELY REFACTORED<\/li>\n<li>updated UI to match current WP setup<\/li>\n<li>rewrote javascript for better security<\/li>\n<li>added post action row items for creating and updating counts<\/li>\n<li>added check for possible 404 return on YOURLS server<\/li>\n<li>a whole lot more<\/li>\n<\/ul>\n\n<h4>1.09 - 02\/21\/2013<\/h4>\n\n<ul>\n<li>bugfixes related to certain hosting configurations<\/li>\n<li>minor JS cleanup<\/li>\n<\/ul>\n\n<h4>1.08 - 12\/31\/2012<\/h4>\n\n<ul>\n<li>change to allow scheduled posts to process URL call. props @ethitter<\/li>\n<\/ul>\n\n<h4>1.07 - 12\/24\/2012<\/h4>\n\n<ul>\n<li>better sanitizing of personal YOURLS URL<\/li>\n<li>code cleanup<\/li>\n<\/ul>\n\n<h4>1.06 - 12\/18\/2012<\/h4>\n\n<ul>\n<li>included template tag for theme use. (See FAQs for usage)<\/li>\n<li>added a 'delete' button for single links (See FAQs for details)<\/li>\n<li>The YOURLS metabox will not appear until a post has been published.<\/li>\n<\/ul>\n\n<h4>1.05 - 12\/10\/2012<\/h4>\n\n<ul>\n<li>added a conversion tool from Ozh's plugin to this one<\/li>\n<\/ul>\n\n<h4>1.04 - 12\/09\/2012<\/h4>\n\n<ul>\n<li>refactoring the wp_shortlink functionality<\/li>\n<\/ul>\n\n<h4>1.03 - 12\/04\/2012<\/h4>\n\n<ul>\n<li>Bugfix for post type checking<\/li>\n<\/ul>\n\n<h4>1.02 - 10\/14\/2012<\/h4>\n\n<ul>\n<li>Option for adding to specific post types<\/li>\n<li>delay link creation until status is published<\/li>\n<li>internationalization support<\/li>\n<\/ul>\n\n<h4>1.01<\/h4>\n\n<ul>\n<li>Added option to create link on post save<\/li>\n<li>code cleanup<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>First release!<\/li>\n<\/ul>","raw_excerpt":"Creates a custom short URL when saving posts. Requires your own YOURLS install.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/20283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=20283"}],"author":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/norcross"}],"wp:attachment":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=20283"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=20283"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=20283"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=20283"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=20283"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=20283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}