-
-
Save JeroenSormani/82c02d3b7a0e1d71e37a to your computer and use it in GitHub Desktop.
Change default note to a regular note
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Change default note type to regular note. | |
*/ | |
function wpdn_change_default_note_type( $meta ) { | |
$meta['note_type'] = 'regular'; | |
return $meta; | |
} | |
add_filter( 'wpdn_new_note_meta', 'wpdn_change_default_note_type' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment