Support

Account

Home Forums Backend Issues (wp-admin) Cumstom message field with data from code

Unread

Cumstom message field with data from code

  • Here’s an example to get data inside a message field (via code) in backend:

    <?php
    function my_acf_load_field( $field ) {
    
        $field[message] = "<h3>Message</h3>";
        $field[message] .= "<p>The content...</p>";
        
        // return the field
        return $field;
    }
    // key
    add_filter('acf/load_field/key=field_5c36954abb6bf', 'my_acf_load_field');
    ?>
Viewing 1 post (of 1 total)

The topic ‘Cumstom message field with data from code’ is closed to new replies.