public function _replyToDisableAutoSave() { if ($this->oProp->bEnableAutoSave) { return; } if ($this->oProp->sPostType != get_post_type()) { return; } wp_dequeue_script('autosave'); }