Skip to content

Commit 6703cc3

Browse files
committed
Add docs for fetching options
1 parent 51a407c commit 6703cc3

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

options-and-settings-pages/genesis-cpt-archive-metabox.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
<?php
22
/**
33
* CMB2 Genesis CPT Archive Metabox
4+
*
5+
* To fetch these options, use `genesis_get_cpt_option()`, e.g.
6+
* // In CPT archive template:
7+
* if ( genesis_has_post_type_archive_support() ) {
8+
* $color = genesis_get_cpt_option( 'test_colorpicker' );
9+
* }
10+
*
411
* @version 0.1.0
512
*/
613
class Myprefix_Genesis_CPT_Settings_Metabox {

options-and-settings-pages/genesis-settings-metabox.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
<?php
22
/**
3-
* CMB2 Theme Options
3+
* CMB2 Genesis Settings Metabox
4+
*
5+
* To fetch these options, use `genesis_get_option()`, e.g.
6+
*
7+
* $color = genesis_get_option( 'test_colorpicker' );
8+
*
49
* @version 0.1.0
510
*/
611
class Myprefix_Genesis_Settings_Metabox {

0 commit comments

Comments
 (0)