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
<?php | |
function test_gutenberg_update( $data, $postarr ) { | |
$content = $data['post_content']; | |
if ( empty($content)){ | |
$content = 'Blank Data Overwritten'; | |
} | |
$data['post_content'] = 'This is an overwrite!'; | |
return $data; | |
} |
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
### Keybase proof | |
I hereby claim: | |
* I am cellar-door on github. | |
* I am teitzel (https://keybase.io/teitzel) on keybase. | |
* I have a public key ASCHXYl1Rmlj63MiCsj1Zvu10EeA2eNemMgAaSkAQyJqawo | |
To claim this, I am signing this object: |