distributor icon indicating copy to clipboard operation
distributor copied to clipboard

Disable "as draft" being checked by default

Open TangramWerbeagentur opened this issue 5 years ago • 4 comments

Is your enhancement related to a problem? Please describe. We are using the plugin for a centralized backend to distribute posts to other sites, without having to access the specific sites' backends. When forgetting to uncheck the "as draft" option we have to access every of those said backends.

Describe the solution you'd like Please disable "as draft" by default, or make it a setting to disable it by default.

TangramWerbeagentur avatar Sep 16 '20 13:09 TangramWerbeagentur

Hi @TangramWerbeagentur, I'm working on a filter (and maybe a setting) to uncheck the as draft by default. In the meantime, you can fix your issue temporarily by disabling As draft distribution:

add_filter( 'dt_allow_as_draft_distribute', '__return_false' );

dinhtungdu avatar Oct 05 '20 15:10 dinhtungdu

Thanks a lot! Working just fine and solved my problem.

TangramWerbeagentur avatar Oct 06 '20 15:10 TangramWerbeagentur

@dinhtungdu I am just stumbling about this issue, where do I have to add this line? Do I need to modify the js?

Siedlerchr avatar Oct 18 '21 14:10 Siedlerchr

@dinhtungdu I am just stumbling about this issue, where

Hi @Siedlerchr I'm sorry for the late reply! You need to add that line to your theme's functions.php or a custom plugin.

dinhtungdu avatar Oct 25 '21 04:10 dinhtungdu