Get post meta inline edit WordPress

Not sure it’s the best code but I’ve tested something here that works :

(function ($) {

    // copy of the WP inline edit post
    var wp_inline_edit = inlineEditPost.edit;

    // override
    inlineEditPost.edit = function (id) {

        // WP edit function
        wp_inline_edit.apply(this, arguments);


        // get post ID
        var post_id = 0;
        if (typeof( id ) === 'object') {
            post_id = parseInt(this.getId(id));
        }

        if (post_id > 0 && typeof mp_data !== 'undefined' && $.inArray( post_id, mp_data.ids ) > -1 ) {

            var edit_row = $('#edit-' + post_id);
            edit_row.find('.my_class').prop('checked', true);
        }

    }

})(jQuery);

It seems you have to do it this way.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)