This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function disable_frontend_builder() { | |
global $ThemifyBuilder; | |
if( ! is_admin() ) { | |
remove_action( 'wp_enqueue_scripts', array( $ThemifyBuilder, 'load_front_js_css' ), 10 ); | |
remove_action( 'wp_before_admin_bar_render', array( $ThemifyBuilder, 'builder_admin_bar_menu'), 1000 ); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function custom_site_title( $html, $location, $logo_tag, $type ) { | |
global $post; | |
if( is_singular() && $custom_title = get_post_meta( $post->ID, 'site_title', true ) ) { | |
$title = get_bloginfo('name'); | |
$html = str_replace( $title, $custom_title, $html ); | |
} | |
return $html; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if( ! is_admin() ) { | |
add_filter( 'get_edit_post_link', '__return_null' ); | |
} | |
function restore_admin_bar_edit_link() { | |
remove_filter( 'get_edit_post_link', '__return_null' ); | |
} | |
add_action( 'wp_footer', 'restore_admin_bar_edit_link' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$theme = wp_get_theme(); | |
function filter_theme_options( $options ) { | |
return $options; | |
} | |
add_filter( 'option_' . $theme->display('Name') . '_themify_data', 'filter_theme_options' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function custom_date_format( $format ) { | |
return 'M j, Y'; | |
} | |
add_filter( 'themify_loop_date', 'custom_date_format' ); |
NewerOlder