In WordPress CMS, the controls under the WYSIWYG editor

I want to create a wordpress plugin where it adds additional controls underneath the WYSIWYG editor when adding pages/posts. But I don’t know what keywords I’m supposed to google for to find relevant tutorials on how to do it.

Can someone provide me with resources?

Related posts

Leave a Reply

3 comments

  1. It’s called add_meta_box() – call it within a hooked admin_init function like so;

    function my_custom_meta_box()
    {
        add_meta_box(
            'my_meta_box_id',
            'My Meta Box Title',
            'my_meta_box_callback',
            'post', // either post, page or link,
            'normal', // position of the meta box,
            'high' // position priority
        );
    }
    add_action('admin_init', 'my_custom_meta_box');
    
    function my_meta_box_callback()
    {
        echo 'This is the content of my meta box!';
    }