- Custom DataBase Tables
- CDBT Version 2.x
- メソッド・リファレンス
- get_shortcode_option
get_shortcode_option
(CDBT 2.0.0)
get_shortcode_option指定したカスタムショートコードの設定値一覧を取得します
Description
array get_shortcode_option ( [ int $csid ] )指定したカスタムショートコードの設定値一覧を取得します。このメソッドは
get_option()のラッパーです。Parameters
- csid
- 取得するカスタムショートコードのエイリアスID(カスタムショートコードID)の数値。
Return
指定したIDに合致するショートコードの設定値の配列が返ります。合致するIDのショートコードが存在しない場合は空の配列が返ります。また、ID未指定時にはすべてのカスタムショートコードの設定配列が返ります。
History
| バージョン | 内容 |
|---|---|
| 2.0.0 | 新規追加 |
Example
<?php
global $cdbt;
print_r( $cdbt->get_shortcode_option( 1 ) );
Reference
Related Methods
- get_shortcode_list()指定したショートコードの一覧を取得します