1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52:
<?php
add_action('wp', 'landingpage_fix_known_wp_title_isses', 10);
function landingpage_fix_known_wp_title_isses() {
if ('landing-page' != get_post_type()) {
return;
}
remove_filter('wp_title', 'genesis_doctitle_wrap', 20);
remove_filter('wp_title', 'genesis_default_title', 10);
}
if (!function_exists('inbound_qtrans_disable')) {
function inbound_qtrans_disable() {
global $typenow, $pagenow;
if (in_array($typenow, array('landing-page' || 'wp-call-to-action')) &&
in_array($pagenow, array('post-new.php', 'post.php'))
) {
remove_action('admin_head', 'qtrans_adminHeader');
remove_filter('admin_footer', 'qtrans_modifyExcerpt');
remove_filter('the_editor', 'qtrans_modifyRichEditor');
}
}
add_action('current_screen', 'inbound_qtrans_disable');
}
if (!class_exists('LP_EXTENSION_UPDATER') ){
class LP_EXTENSION_UPDATER { };
class LP_EXTENSION_LICENSENING { };
}