tdc_dirty_content

Posted in: Newspaper
Post count: 30

I’ve noticed that tdc_dirty_content started showing up on downloads managed through the Download Monitor plugin.

Deleting it from the custom field doesn’t help because it reappears after saving the post.

What is tdc_dirty_content and how do I stop it from appearing?

  • This topic was modified 8 years by omarfilip.
Post count: 23312

Hello omarfilip,

Please notice that custom filed is used by the theme to verify if the content is added by WordPress from the backend (it gives 0 value) and if the content is added from the tagDiv composer (it gives 1 as value). It should not be removed because the theme will use this detail. You can check here -> https://www.screencast.com/t/RaJpjDHdQ5D to see where exactly this code is created. I do not know why you want to remove it because it will be more useful for the theme and it will do not influence any theme results.

Thanks for your understanding!

Post count: 30

I only need to prevent it from showing up on the front end:
https://www.screencast.com/t/NAp6pcJBU

This may be an issue with the Download Monitor plugin.

Post count: 23312

Hello omarfilip,

I do not understand what bothers you because the users do not see this! Finally, if you want to remove this code you should edit the file which I have presented you above and comment out the code from there.

Hope this helps!

Thanks for the message!

Post count: 30

Catalin, please look at the screenshot I provided or visit the link below. The users can plainly see it.

https://glasair-owners.com/library/download-info/063-09021-01-glastar-aux-fuel-tank-installation-instructions/

Post count: 23312

Hello filip,

Above, I have presented you where this is in a code. Another alternative for you would be to use a bit of CSS code to hide this from your page, like in this example -> https://www.screencast.com/t/7it3bgEg

.page-id-446 tbody>tr:last-child{
display:none;
}

Hope this helps!

Thanks for your understanding!

Post count: 30

Thanks, Catalin. I also queried the developer of the Download Monitor plugin, and here is the response I received:

Our plugin displays all the metadata (custom fields) of a download which is set to public. To make the field private, please add an “_” underscore before the name of the field. If this is not possible for any reasons, then I would suggest using custom code like in the example below to hide the field.

function dlm_my_pa_meta_filter( $meta ) {
unset( $meta[‘tdc_dirty_content’] );

return $meta;
}

add_filter( ‘dlm_page_addon_download_meta’, ‘dlm_my_pa_meta_filter’, 10, 1 );

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.