{"id":52619,"date":"2016-12-06T09:41:01","date_gmt":"2016-12-06T09:41:01","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/post-bookmarks\/"},"modified":"2019-04-04T21:46:56","modified_gmt":"2019-04-04T21:46:56","slug":"post-bookmarks","status":"publish","type":"plugin","link":"https:\/\/azb.wordpress.org\/plugins\/post-bookmarks\/","author":245975,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.1.7","stable_tag":"trunk","tested":"5.1.22","requires":"3.5","requires_php":"","requires_plugins":"","header_name":"Post Bookmarks","header_author":"G.Breant","header_description":"","assets_banners_color":"","last_updated":"2019-04-04 21:46:56","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/bit.ly\/gbreant","header_plugin_uri":"https:\/\/github.com\/gordielachance\/post-bookmarks","header_author_uri":"https:\/\/profiles.wordpress.org\/grosbouff\/#content-plugins","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1777,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1602013","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1602013","resolution":"2","location":"assets"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1602013","resolution":"3","location":"assets"}},"screenshots":{"1":"Post Bookmarks metabox in the backend editor","2":"Links displayed under a post","3":"Settings page"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[18996,175,41985,26413,6643],"plugin_category":[],"plugin_contributors":[83793],"plugin_business_model":[],"class_list":["post-52619","plugin","type-plugin","status-publish","hentry","plugin_tags-custom-links","plugin_tags-links","plugin_tags-post-links","plugin_tags-quick-links","plugin_tags-related-links","plugin_contributors-grosbouff","plugin_committers-grosbouff"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/post-bookmarks.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/post-bookmarks\/assets\/screenshot-1.png?rev=1602013","caption":"Post Bookmarks metabox in the backend editor"},{"src":"https:\/\/ps.w.org\/post-bookmarks\/assets\/screenshot-2.png?rev=1602013","caption":"Links displayed under a post"},{"src":"https:\/\/ps.w.org\/post-bookmarks\/assets\/screenshot-3.png?rev=1602013","caption":"Settings page"}],"raw_content":"<!--section=description-->\n<p>Manage links attached to a post through a metabox, and setup how they are displayed in your posts...  With a link favicon.<\/p>\n\n<ul>\n<li>Nice GUI<\/li>\n<li>Options page<\/li>\n<li>Default link title and image based on its url (ajaxed)<\/li>\n<li>Sort links by names or a custom order<\/li>\n<li>Powered by the WP core bookmark functions<\/li>\n<li>actions and filters hooks for developpers<\/li>\n<\/ul>\n\n<h4>Contributors<\/h4>\n\n<p>Contributors <a href=\"https:\/\/github.com\/gordielachance\/post-bookmarks\/contributors\">are listed here<\/a><\/p>\n\n<h4>Notes<\/h4>\n\n<p>For feature request and bug reports, <a href=\"http:\/\/wordpress.org\/support\/plugin\/post-bookmarks#postform\">please use the forums<\/a>.<\/p>\n\n<p>If you are a plugin developer, <a href=\"https:\/\/github.com\/gordielachance\/post-bookmarks\">we would like to hear from you<\/a>. Any contribution would be very welcome.<\/p>\n\n<h3>Localization<\/h3>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin to your blog and Activate it.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How can I get only the links attached to a post ?<\/dt>\n<dd><p>Use the function <strong>Post_Bookmarks::get_post_links($post_id,$args)<\/strong>.\nIf you want to display those links use the function <strong>Post_Bookmarks::get_link_list($post_id,$args)<\/strong>.<\/p>\n\n<p>The two parameters are optionals.\n$args should be an array of parameters - the same you would set when using the native <a href=\"https:\/\/codex.wordpress.org\/Function_Reference\/get_bookmarks\">get_bookmarks()<\/a> function.  Example :<\/p>\n\n<pre><code>&lt;?php\n$args = array('category'=&gt;12);\nPost_Bookmarks::get_link_list(null,$args);\n?&gt;\n<\/code><\/pre><\/dd>\n<dt>How can I get only the links NOT attached to a post ?<\/dt>\n<dd><p>Use the the native function <strong>get_bookmarks()<\/strong> with the 'post_bkmarks_exclude' parameter.  Example :<\/p>\n\n<pre><code>&lt;?php\nget_bookmarks( array('post_bkmarks_exclude'=&gt;true) );\n?&gt;\n<\/code><\/pre><\/dd>\n<dt>How can I style a link based on its domain, using CSS ?<\/dt>\n<dd><p>Use the <em>data-cp-link-domain<\/em> attribute, for example :<\/p>\n\n<pre><code>li.post-bkmarks[data-cp-link-domain='wikipedia.org'] .post-bkmarks-favicon {\n    background-image: url('https:\/\/wikipedia.org\/static\/favicon\/wikipedia.ico');\n}\n<\/code><\/pre><\/dd>\n<dt>How can I change the way links are displayed ?<\/dt>\n<dd><p>Use the filter <em>post_bkmarks_single_link_html<\/em> (located in the function <strong>Post_Bookmarks::get_link_html()<\/strong>), for example :<\/p>\n\n<pre><code>&lt;?php\n\nfunction custom_output_single_link($output,$link){\n    return $output;\n}\n\nadd_filter('post_bkmarks_single_link_html','custom_output_single_link',10,2);\n\n?&gt;\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.1.7<\/h4>\n\n<ul>\n<li>cleaned and updated doc.<\/li>\n<\/ul>\n\n<h4>2.1.6<\/h4>\n\n<ul>\n<li>Fixed ajax actions<\/li>\n<li>links IDs order is now saved (only) with ajax each time links are reordered, and is a standalone PHP action<\/li>\n<\/ul>\n\n<h4>2.1.4<\/h4>\n\n<ul>\n<li>Fixed ajax actions<\/li>\n<li>Updated Font Awesome<\/li>\n<li>debug_log() function<\/li>\n<li>better way of saving links \/ handling bulk actions<\/li>\n<\/ul>\n\n<h4>2.1.3<\/h4>\n\n<ul>\n<li>some code improvements + renamed some functions &amp; filters<\/li>\n<\/ul>\n\n<h4>2.1.2<\/h4>\n\n<ul>\n<li>improved filter_bookmarks_for_post: removed the 'include' arg which was incompatible with 'category', 'category_name', and 'exclude' bookmarks parameters.<\/li>\n<li>improved Post_Bookmarks::get_tab_links.<\/li>\n<\/ul>\n\n<h4>2.1.1<\/h4>\n\n<ul>\n<li>improved row actions<\/li>\n<li>colorize the checkbox if the URL of the link is attached to the post<\/li>\n<\/ul>\n\n<h4>2.1.0<\/h4>\n\n<ul>\n<li>remove 'hide_from_bookmarks' option (see FAQ)<\/li>\n<li>fix protocol bug<\/li>\n<li>fix url field not hiding when quick editing a link<\/li>\n<li>bulk actions<\/li>\n<\/ul>\n\n<h4>2.0.9<\/h4>\n\n<ul>\n<li>Renamed plugin from 'Custom Post Links' to 'Post Bookmarks'<\/li>\n<li>Upgrade routine for 'Custom Post Links' plugin<\/li>\n<li>Improved class Post_Bookmarks_List_Table<\/li>\n<\/ul>\n\n<h4>2.0.8<\/h4>\n\n<ul>\n<li>'Quick Edit' mode<\/li>\n<li>Link categories column<\/li>\n<li>Better way of saving existing \/ new links<\/li>\n<li>improved javascript (&amp; includes URI.js)<\/li>\n<li>'hide_from_bookmarks' option<\/li>\n<li>Filters on the 'get_bookmarks' hook to include \/ exclude our links<\/li>\n<\/ul>\n\n<h4>2.0.7<\/h4>\n\n<ul>\n<li>cleaner code for blank row link + links tabe actions<\/li>\n<\/ul>\n\n<h4>2.0.6<\/h4>\n\n<ul>\n<li>try to guess the link name from remote page title or domain (ajaxed)<\/li>\n<li>URL as first column<\/li>\n<li>better way to load JS<\/li>\n<\/ul>\n\n<h4>2.0.5<\/h4>\n\n<ul>\n<li>Better output styling<\/li>\n<li>Favicons : Option to automatically load URL pictures from Google API<\/li>\n<li>New filter \u2018post_bkmarks_get_for_post_pre\u2019<\/li>\n<li>New function ::get_blank_link()<\/li>\n<\/ul>\n\n<h4>2.0.4<\/h4>\n\n<ul>\n<li>minor<\/li>\n<\/ul>\n\n<h4>2.0.3<\/h4>\n\n<ul>\n<li>ignore targets (eg. \u2019_blank\u2019) if a link is a local link<\/li>\n<li>backend : use \u2018_blank\u2019 target for URLs in the links table<\/li>\n<li>implemented links targets<\/li>\n<\/ul>\n\n<h4>2.0.2<\/h4>\n\n<ul>\n<li>Importer and admin notice for links from the original <a href=\"https:\/\/github.com\/daggerhart\/post-bookmarks\">Custom Post Links<\/a> plugin (metas '_post_bkmarks').<\/li>\n<li>new function Post_Bookmarks::save_link()<\/li>\n<li>Improved function 'post_bkmarks_get_existing_link_id'<\/li>\n<li>new function \u2018post_bkmarks_get_metas\u2019<\/li>\n<\/ul>\n\n<h4>2.0.1<\/h4>\n\n<ul>\n<li>Do not use the same post meta key than than the original <a href=\"https:\/\/github.com\/daggerhart\/post-bookmarks\">Custom Post Links<\/a> plugin.<\/li>\n<\/ul>\n\n<h4>2.0<\/h4>\n\n<ul>\n<li>custom sorting<\/li>\n<li>options page<\/li>\n<li>set the link domain as class in the link output<\/li>\n<li>display entries in metabox using class Post_Bookmarks_List_Table (extends WP_List_Table)<\/li>\n<li>store \/ read entries from the Link Manager plugin (Worpress core) instead of metas<\/li>\n<li>wrapped in a class, better code structure<\/li>\n<li>use fontAwesome css, deleted drag_handle.png<\/li>\n<li>various other improvements<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Forked from <a href=\"https:\/\/github.com\/daggerhart\/post-bookmarks\">Custom Post Links<\/a> by Jonathan Daggerhart.<\/li>\n<\/ul>","raw_excerpt":"Manage links attached to a post through a metabox, and setup how they are displayed in your posts...  With a link favicon.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/52619","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=52619"}],"author":[{"embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/grosbouff"}],"wp:attachment":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=52619"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=52619"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=52619"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=52619"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=52619"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=52619"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}