Advertisement
Guest User

Untitled

a guest
Dec 13th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.65 KB | None | 0 0
  1. add_filter( 'gform_field_value_profile_description', 'populate_profile_description' );
  2. function populate_profile_description( $value ) {
  3.     $rich_text_saved = get_option( 'gf_profile_description' );
  4.     GFCommon::log_debug( __METHOD__ . '(): Value retrieved from database: ' . $rich_text_saved );
  5.     return $rich_text_saved;
  6. }
  7.  
  8. add_action( 'gform_after_submission_1347', 'save_rich_text_content', 10, 2 );
  9. function save_rich_text_content( $entry, $form ) {
  10.  
  11.     $field_8_content = rgar( $entry, '8' );
  12.     GFCommon::log_debug( __METHOD__ . '(): Value saved to database: ' . $field_8_content );
  13.     update_option( 'gf_profile_description', $field_8_content );
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement