How do I create settings only used by my theme? [closed]

You don’t have to register_settigs, you can just add the options straight to the database with add_option(). You could have like a dummy option “all_pages_created” and if that’s set then don’t check for the individual pages. if (get_option(‘all_pages_created’) !== false) { // it’s set, do nothing } else { // check for your pages and … Read more

get_option return incorrect values

You can just use the get_option() function like this: <?php $main_dashboard_check = get_option( ‘main_dashboard_check’ ); var_dump( $main_dashboard_check ); /* outputs false if the value does not exist */ $main_dashboard_check = get_option( ‘main_dashboard_check’, ‘default_value’ ); var_dump( $main_dashboard_check ); /* outputs ‘default_value’ if the value does not exist */ ?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)