• Resolved rdeipar

    (@rdeipar)


    So I deleted one of those social media plugins I no longer needed. Then I refreshed my page and this came up again:

    “You can upload: image, audio, video, document, spreadsheet, interactive, text, archive, code, other.
    Links to YouTube, Facebook, Twitter and other services inserted in the comment text will be automatically embedded.”

    I’ve had this problem 2 months ago and I don’t remember who helped me remove it. He gave me a code that removed that string but somehow it’s gone from all my code on Theme Editor and I didn’t save it elsewhere.

    Does anyone know the code to remove that string? Or just to remove it, period?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter rdeipar

    (@rdeipar)

    Found the code that hides “You can upload: image, audio, video, document, spreadsheet, interactive, text, archive, code, other.” If anyone wants it:

    add_filter( ‘dco_ca_form_element_file_types’, ‘_return_empty_string’);

    But still on a mission to find how to get rid of the “Links to…” string

    Thread Starter rdeipar

    (@rdeipar)

    Through trial & error and the gift of GitHub, I tried this code to remove the “Links to…” string:

    add_filter( ‘dco_ca_form_element_autoembed_links_notification’, ‘_return_empty_string’);

    I just reused the previous code and replaced “_file_types” with “_autoembed_links_notification” after scanning through this GitHub page: https://github.com/yadenis/DCO-Comment-Attachment/blob/master/includes/class-dco-ca.php, placed it in functions.php and it worked. Good stuff.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘“You can upload…” string shows up again’ is closed to new replies.