• Resolved 3pepe3

    (@3pepe3)


    Hello,

    Some times mqtranslate is unnecessary and can break the features from another plugins that uses custom post types (Ex. TablePress, Cform7, ACF…).

    So for me to disable mqtranslate in custom poststypes is a must… So I did some modification on the code and I added this feature following the mqtranslate code’s standards:

    You can download the file from here:

    And here is a snapshot for this feature :

    Hope this feature can be added in the official plugin.

    https://wordpress.org/plugins/mqtranslate/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter 3pepe3

    (@3pepe3)

    By the way there are some plugins that are more tricky to disable because they implement a custom edition screen.

    For example tablepress is a tricky one but with my modifications you can add in your themes function the next code (filter):

    add_filter( 'qtrans_testCustomPostType', 'exclude_posttype_tablepress', 10, 0 );
    function exclude_posttype_tablepress(){
        global $current_screen;
        if( defined( 'TABLEPRESS_ABSPATH' ) && $current_screen->base == 'tablepress_edit' || $_POST['action'] == 'tablepress_edit' ) {
            return 'tablepress_table' ;
        }
    }
    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Can you please post the changes via pastebin.com? That tends to be much safer preferred than downloading links via Google Docs.

    Thread Starter 3pepe3

    (@3pepe3)

    Too much lines and several files… so no that’s not an option

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    That’s a lot of modifications. Try using the diff command and post the pastebin.com to the diff output.

    The thing is that this plugin is a fork of another plugin but this sub-forum really belongs to the plugin author. Posting links to a massively modified version really belongs on your blog.

    Or see if you can contact the author of this plugin and perhaps your changes will be accepted and shared that way.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable in custom post types’ is closed to new replies.