WordPress.org

Support

Support » Plugins and Hacks » attachment_fields_to_save and ALT-text for image

attachment_fields_to_save and ALT-text for image

  • andrewsalko
    Member

    @andrewsalko

    Try to automatically add “ALT” text to images, using filter attachment_fields_to_save, looks like:

    function filter_addAltText($post, $attachment)
    {
    $attachment[‘image_alt’]=’My special image ALT text!’;
    return $post;
    }

    But no effect. Any suggestions?

  • The topic ‘attachment_fields_to_save and ALT-text for image’ is closed to new replies.