Support

Account

Home Forums ACF PRO Trying to use acf_add_admin_notice for custom notice

Unread

Trying to use acf_add_admin_notice for custom notice

  • Hi,

    I wanted to use acf_add_admin_notice("something has changed", "success"); to display custom message in acf/update_value hook but nothing happens.
    No notice, but also no error.

    The returned result is:

    ACF_Admin_Notice Object
    (
        [data] => Array
            (
                [text] => something has changed
                [type] => success
                [dismissible] => 1
            )
    
        [cid] => acf-16
        [aliases] => Array
            (
            )
    
        [multisite] => 
    )

    Should this work or is that function for some internal plugin’s use?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.