mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-20 06:53:23 +09:00
Add optional shortcode buttons
This commit is contained in:
@@ -134,14 +134,12 @@ class Display_Featured_Image_Genesis_Helper extends DisplayFeaturedImageGenesisG
|
||||
* @param $args
|
||||
*/
|
||||
public function do_checkbox_array( $args ) {
|
||||
$post_types = $this->get_content_types_built_in();
|
||||
foreach ( $post_types as $post_type ) {
|
||||
$object = get_post_type_object( $post_type );
|
||||
foreach ( $args['options'] as $key => $value ) {
|
||||
$type_args = array(
|
||||
'setting' => "{$args['setting']}][{$post_type}",
|
||||
'label' => $object->label,
|
||||
'setting' => "{$args['setting']}][{$key}",
|
||||
'label' => $value,
|
||||
'setting_name' => $args['setting'],
|
||||
'name' => $post_type,
|
||||
'name' => $key,
|
||||
);
|
||||
$this->do_checkbox( $type_args );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user