is there a way/hook/filter to make some of the bricks settings enabled on default?
I want to change default settings on my child theme
I set the same settings again and again on every new project boring task
is there a way/hook/filter to make some of the bricks settings enabled on default?
I want to change default settings on my child theme
I set the same settings again and again on every new project boring task
looks like bricks using mostly wp_options for saving settings. no wonder nothing on the docs
now I know what to write on my child theme.
wrote a code like this to see all options settings where bricks saving and how it is saving.
// Add the custom menu and page
add_action('admin_menu', 'show_options_menu');
function show_options_menu() {
add_menu_page(
'Show Options', // Page title
'Show Options', // Menu title
'manage_options', // Capability required
'show-options', // Menu slug
'show_options_page', // Callback function for the page content
'dashicons-admin-generic', // Icon URL or Dashicon
26 // Position in the menu
);
}
// Callback function for the page content
function show_options_page() {
global $wpdb;
// Fetch all options from the wp_options table
$options = $wpdb->get_results("SELECT option_name, option_value FROM $wpdb->options");
// Display the options in an unordered list
echo '<div class="wrap"><h1>All Options</h1><ul>';
foreach ($options as $option) {
echo '<li><strong>' . $option->option_name . '</strong>: ' . $option->option_value . '</li>';
}
echo '</ul></div>';
}