• Resolved kreestal

    (@kreestal)


    Hi there!

    Is there a way to remove the dlm-version meta tag in the HTML head please?

    I.e. <meta name="dlm-version" content="4.7.78">

    When I look into the plugin’s code, I can only find the following:

    // Add meta tags to head for DLM Version
    add_action( 'wp_head', function () {
    	echo '<meta name="dlm-version" content="' . esc_attr( DLM_VERSION ) . '">';
    }, 1 );

    However, I can’t find a filter to remove it with the remove_action filter.

    What’s the point of printing the plugin’s version in the source code anyway?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello @kreestal ,

    Currently this is not possible. We are displaying the plugin version in meta for debugging purposes. We’ll take your input into consideration and will introduce probably a filter in our next updates. You can view the evolution here: https://github.com/WPChill/download-monitor/issues/1267.

    Warmly,
    Razvan

    Thread Starter kreestal

    (@kreestal)

    Great, thank you Razvan!

    Hello @kreestal ,

    Starting from plugin version 4.8.0 you can remove the plugin version from the meta by attaching to the following filter in your child theme’s functions.php file like so:

    add_filter( 'dlm_hide_meta_version', '__return_true' );

    Warmly,
    Razvan

    Thread Starter kreestal

    (@kreestal)

    It works! I’m grateful for the time you put into this. Thank you so much!

    Happy to be of help!

    Have a wonderful day!
    Razvan

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Remove dlm-version meta tag’ is closed to new replies.