Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
programmieren:wordpress:klassische_metabox_fuer_posts_erstellen [2023/06/14 19:25] jgehrkeprogrammieren:wordpress:klassische_metabox_fuer_posts_erstellen [2023/06/15 08:42] (current) jgehrke
Line 4: Line 4:
  
 <code php> <code php>
-/* +<?php 
- METABOX EINKLINGEN +/*  Metabox init */ 
- */ +new MetaboxPost();
-new MetaboxPostMarketo();+
  
 /** /**
- SEITEN EIGENSCHAFTEN+ METABOX KLASSE
  */  */
-class MetaboxPostMarketo+class MetaboxPost
 { {
  
Line 23: Line 22:
  public function add_metabox()  public function add_metabox()
  {  {
- $mb_id            = 'moewe_mb_post_marketo'; + $mb_id            = 'plugin_metbox_name'; 
- $mb_title         = 'Marketo Verbindung';+ $mb_title         = 'Meine Metabox';
  $mb_callback      = [ $this, 'render_metabox' ];  $mb_callback      = [ $this, 'render_metabox' ];
  $mb_screens       = ['post','event'];  $mb_screens       = ['post','event'];

Page Tools