Title: Hook default values in wizard
Last modified: March 1, 2022

---

# Hook default values in wizard

 *  Resolved [Joffrey Nicoloff](https://wordpress.org/support/users/agent3w/)
 * (@agent3w)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/hook-default-values-in-wizard/)
 * Hello,
 * I would like to set automatically default values in wizard step “Website informations”:
   owner, address…
 * Is it possible to implement this feature ?
 * Reason : I’m injecting values from one custom plugin to all pre-installed plugins
   when I’m installing new wordpress project. I didn’t find hook to do this in your
   plugin core files.
 * Thank you.
    Best regards.
 * Joffrey

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

 *  Plugin Contributor [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * (@rogierlankhorst)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/hook-default-values-in-wizard/#post-15415945)
 * You can set the default value like this:
 *     ```
       add_filter( 'cmplz_default_value', 'cmplz_set_default', 10, 2 );
       function cmplz_set_default( $value, $fieldname ) {
       	if ( $fieldname == 'organisation_name' ) {
       		$value = 'My Company';
       	}
               return $value;
       }
       ```
   
 * If you actually want to save the setting:
 * `cmplz_update_option('wizard', 'organisation_name', 'My Company' );`
 *  Thread Starter [Joffrey Nicoloff](https://wordpress.org/support/users/agent3w/)
 * (@agent3w)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/hook-default-values-in-wizard/#post-15416415)
 * Thank you Rogier, this is exactly what I was looking for 😉
 * Thanks again.
 * Best regards.
    Joffrey

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

The topic ‘Hook default values in wizard’ is closed to new replies.

 * ![](https://ps.w.org/complianz-gdpr/assets/icon-256x256.png?rev=2881064)
 * [Complianz - GDPR/CCPA Cookie Consent](https://wordpress.org/plugins/complianz-gdpr/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/complianz-gdpr/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/complianz-gdpr/)
 * [Active Topics](https://wordpress.org/support/plugin/complianz-gdpr/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/complianz-gdpr/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/complianz-gdpr/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Joffrey Nicoloff](https://wordpress.org/support/users/agent3w/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/hook-default-values-in-wizard/#post-15416415)
 * Status: resolved