Support » Plugin: Jetpack by WordPress.com » Want to Stop Publicize for WordPress Download Manager plugin

  • Resolved harmindersaini

    (@harmindersaini)


    i am using jetpack Publicize service to share posts on social networks and now i recentely start using “WordPress Download Manager” plugin. now problem is here when i post a download file for my post jetpack publicize share this to social networks because this plugin use single.php same as post so i want to stop publicize for WordPress Download Manager plugin downloads and want to use for post’s only.

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • i ask same question to WordPress Download Manager” Plugin Authors

    Here is reply from WordPress Download Manager Author:-

    “There should be settings in Jetpack to control which post types should be auto published. You can disable “wpdmpro” post type from there.”

    i fix this problem by just changing code in /plugins/jetpack/modules/publicize/ui.php

    Before:-
    <?php
    checked( true, $checked );
    echo $disabled;
    ?>

    Replace with:-
    <?php
    if ( get_post_type( get_the_ID() ) != ‘wpdmpro’ )
    checked( true, $checked );
    echo $disabled;
    ?>

    <?php
    if ( get_post_type( get_the_ID() ) != ‘post’ )
    checked( true, $checked );
    echo $disabled;
    ?>

    i fix this problem by just changing code in /plugins/jetpack/modules/publicize/ui.php

    Before:-
    <?php
    checked( true, $checked );
    echo $disabled;
    ?>

    Replace with:-
    <?php
    if ( get_post_type( get_the_ID() ) != ‘wpdmpro’ )
    checked( true, $checked );
    echo $disabled;
    ?>

    <?php
    if ( get_post_type( get_the_ID() ) != ‘post’ )
    checked( false, $checked );
    echo $disabled;
    ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.