Created
August 9, 2021 01:01
-
-
Save ko31/53f1406b27dfe9c656fee9fffd160e60 to your computer and use it in GitHub Desktop.
Biz Calendar プラグインのカレンダーをショートコードから出力する
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Biz Calendar Shortcode | |
Plugin URI: https://gist.github.com/ko31 | |
Description: Biz Calendar のカレンダーをショートコードから出力 | |
Version: 0.1.0 | |
Author: ko31 | |
Author URI: https://go-sign.info | |
*/ | |
add_shortcode( 'bcs_bizcalendar', function( $atts ) { | |
ob_start(); | |
the_widget( 'bizcalendarwidget' ); | |
return ob_get_clean(); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment