diff --git a/classes/LBRYPress.php b/classes/LBRYPress.php index 89369d0..52f392d 100644 --- a/classes/LBRYPress.php +++ b/classes/LBRYPress.php @@ -185,9 +185,11 @@ class LBRYPress //Default options $option_defaults = array( - - LBRY_LICENSE => $this->licenses[0], - LBRY_LBC_PUBLISH => 1 + LBRY_WALLET => '', + 'lbry_default_publish_setting' => '', + 'default_lbry_channel' => '', + LBRY_LICENSE => '', + LBRY_LBC_PUBLISH => 0.001, ); add_option( LBRY_SETTINGS, $option_defaults, false ); diff --git a/classes/LBRY_Admin.php b/classes/LBRY_Admin.php index 7829a00..3c00622 100644 --- a/classes/LBRY_Admin.php +++ b/classes/LBRY_Admin.php @@ -311,6 +311,24 @@ class LBRY_Admin ); } + /** + * Checkbox to default to always allow publish on LBRY + */ + public function lbry_always_pub_callback() + { + $options = get_option( LBRY_SETTINGS )['lbry_default_publish_setting']; + if ( ! isset( $options ) ) { + $options = 0; + } + $checked = checked( $options, 1, false ); + printf( + '
Set Default to always Publish to LBRY, this can be adjusted when publishing a New Post.
', + 'lbry_default_publish_setting', + LBRY_SETTINGS, + + ); + } + /** * Prints select to choose a default to publish to channel */