Title: Saving default settings
Last modified: August 11, 2021

---

# Saving default settings

 *  [a4jp](https://wordpress.org/support/users/a4jpcom/)
 * (@a4jpcom)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/saving-default-settings/)
 * Can you make it so we can save the defaults we like? Everytime I add a flex post
   I have to change the setting over and over. If I could set my own default it 
   would save heaps of time.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [a4jp](https://wordpress.org/support/users/a4jpcom/)
 * (@a4jpcom)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/saving-default-settings/#post-14782630)
 * I found the file to manually edit the defaults for now but it would be great 
   to have a settings page with options. Is there anyway to can help with coding?
 * plugins\flex-posts\blocks\list\block.js
 *  Plugin Author [Tajam](https://wordpress.org/support/users/tajam/)
 * (@tajam)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/saving-default-settings/#post-14792274)
 * Yes, you can change default values from block.js. If you already have the settings
   page (there are many tutorials to create a settings page), you can get the values
   with `get_option()`, and then you need to add the values into the `wp_localize_script()`
   argument in block.php, so you can use the values in the js file.
 *  Thread Starter [a4jp](https://wordpress.org/support/users/a4jpcom/)
 * (@a4jpcom)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/saving-default-settings/#post-14800906)
 * I put a copy of the plugin in GitHub so it can be worked on easily. [https://github.com/a4jp-com/flex-posts](https://github.com/a4jp-com/flex-posts)
   Are you in GitHub? I’ll add you as so you can control stuff there as well if 
   you like.
    -  This reply was modified 4 years, 9 months ago by [a4jp](https://wordpress.org/support/users/a4jpcom/).
 *  Plugin Author [Tajam](https://wordpress.org/support/users/tajam/)
 * (@tajam)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/saving-default-settings/#post-14841311)
 * Sorry, we don’t use github yet. We use only private repository for now.
 *  Thread Starter [a4jp](https://wordpress.org/support/users/a4jpcom/)
 * (@a4jpcom)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/saving-default-settings/#post-14841354)
 * Okay. I’m happy to add code when the settings are open. I’m sure lots of others
   will also help out. We all love open source stuff.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Saving default settings’ is closed to new replies.

 * ![](https://ps.w.org/flex-posts/assets/icon-128x128.png?rev=1871802)
 * [Flex Posts - Widget and Gutenberg Block](https://wordpress.org/plugins/flex-posts/)
 * [Support Threads](https://wordpress.org/support/plugin/flex-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/flex-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flex-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flex-posts/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [a4jp](https://wordpress.org/support/users/a4jpcom/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/saving-default-settings/#post-14841354)
 * Status: not resolved