PHP code example of wpscholar / wp-taxonomy-radio-group
1. Go to this page and download the library: Download wpscholar/wp-taxonomy-radio-group 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/ */
wpscholar / wp-taxonomy-radio-group example snippets
add_action( 'admin_menu', function () {
$taxonomy = get_taxonomy( 'category' );
add_meta_box( "{$taxonomy->name}div", $taxonomy->label, function () use ( $taxonomy ) {
echo wp_tax_radio_group( $taxonomy->name );
}, 'post', 'side' );
} );