diff options
Created class for Custom Metaboxes
1 files changed, 15 insertions, 0 deletions
| -rw-r--r-- | wp-content/plugins/dx-users/class.cm.php | 15 |
diff --git a/wp-content/plugins/dx-users/class.cm.php b/wp-content/plugins/dx-users/class.cm.php new file mode 100644 index 0000000..df2e61a --- /dev/null +++ b/wp-content/plugins/dx-users/class.cm.php @@ -0,0 +1,15 @@ +<?php +class Users { + function init() { + add_action( 'add_meta_boxes', array( $this, 'add_custom_box_user' ) ); + } + function add_custom_box_user() { + $screen = 'user'; + add_meta_box( + 'wporg_box_id', // Unique ID + 'Phone Number', // Box title + 'wporg_custom_box_html', // Content callback, must be of type callable + $screen // Post type + ); + } +} |
