Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
programmieren:wordpress:metabox_in_gutenberg_erstellen [2019/10/13 16:07] – created jgehrkeprogrammieren:wordpress:metabox_in_gutenberg_erstellen [2022/12/17 12:28] (current) – external edit 127.0.0.1
Line 45: Line 45:
 } }
  
-function test_ttile_save( $post_id ) {+function mb_darstellungs_optioen_save( $post_id ) {
  if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return;  if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return;
  if ( ! isset( $_POST['darstellungs_optionen_nonce'] ) || ! wp_verify_nonce( $_POST['darstellungs_optionen_nonce'], '_darstellungs_optionen_nonce' ) ) return;  if ( ! isset( $_POST['darstellungs_optionen_nonce'] ) || ! wp_verify_nonce( $_POST['darstellungs_optionen_nonce'], '_darstellungs_optionen_nonce' ) ) return;
Line 55: Line 55:
  update_post_meta( $post_id, 'display_as_wide', null );  update_post_meta( $post_id, 'display_as_wide', null );
 } }
-add_action( 'save_post', 'test_ttile_save' );+add_action( 'save_post', 'mb_darstellungs_optioen_save' );
  
 /* /*

Page Tools