开发者 | grosbouff |
---|---|
更新时间 | 2019年4月5日 05:46 |
捐献地址: | 去捐款 |
PHP版本: | 3.5 及以上 |
WordPress版本: | 5.1.1 |
版权: | GPLv2 or later |
Use the function Post_Bookmarks::get_post_links($post_id,$args).
If you want to display those links use the function Post_Bookmarks::get_link_list($post_id,$args).
The two parameters are optionals.
$args should be an array of parameters - the same you would set when using the native get_bookmarks() function. Example :
<?php $args = array('category'=>12); Post_Bookmarks::get_link_list(null,$args); ?>
Use the the native function get_bookmarks() with the 'post_bkmarks_exclude' parameter. Example :
<?php get_bookmarks( array('post_bkmarks_exclude'=>true) ); ?>
Use the data-cp-link-domain attribute, for example :
li.post-bkmarks[data-cp-link-domain='wikipedia.org'] .post-bkmarks-favicon { background-image: url('https://wikipedia.org/static/favicon/wikipedia.ico'); }
Use the filter post_bkmarks_single_link_html (located in the function Post_Bookmarks::get_link_html()), for example : `<?php function custom_output_single_link($output,$link){ return $output; } add_filter('post_bkmarks_single_link_html','custom_output_single_link',10,2); ?>`