PHP code example of timothyjensen / post-tag-checklist
1. Go to this page and download the library: Download timothyjensen/post-tag-checklist library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
timothyjensen / post-tag-checklist example snippets
/**
* Show standard post tag meta box to users who have the 'manage_post_tags' capability.
*
* @param bool $render_checklist Whether or not to render the post tag checklist. Default is true.
* @param array $args Array of arguments for the taxonomy.
* @param string $taxonomy Taxonomy name.
* @return bool
*/
add_filter( 'post_tag_checklist_toggle', function( $render_checklist, $args, $taxonomy ) {
if ( current_user_can( 'manage_post_tags' ) ) {
return false;
}
return $render_checklist;
}, 10, 3 );