wordpress/wp-content/themes/basic/themify/themify-wp-filters.php
/**
 * Show custom 404 page (function)
 */
Show custom 404 page (function)
Show custom 404 page ( function )
function themify_404_page_id() {
	$pageid = themify_get( 'setting-page_404',false,true );
	if( ! empty( $pageid ) ) {
		if( defined( 'ICL_SITEPRESS_VERSION' ) ) {
			$pageid = apply_filters( 'wpml_object_id', $pageid, 'page', true );
		} 
		elseif( defined( 'POLYLANG_VERSION' ) && function_exists( 'pll_get_post' ) ) {
			$translatedpageid = pll_get_post( $pageid );
			if ( !empty( $translatedpageid ) && 'publish' === get_post_status( $translatedpageid ) ) {
				$pageid = $translatedpageid;
			}
		}
	}
	return get_post( $pageid )?$pageid:false;
}
function themify_404_page_id ( ) { $ pageid = themify_get ( 'setting-page_404' , false , true ) ; if ( ! empty ( $ pageid ) ) { if ( defined ( 'ICL_SITEPRESS_VERSION' ) ) { $ pageid = apply_filters ( 'wpml_object_id' , $ pageid , 'page' , true ) ; } elseif ( defined ( 'POLYLANG_VERSION' ) && function_exists ( 'pll_get_post' ) ) { $ translatedpageid = pll_get_post ( $ pageid ) ; if ( ! empty ( $ translatedpageid ) && 'publish' === get_post_status ( $ translatedpageid ) ) { $ pageid = $ translatedpageid ; } } } return get_post ( $ pageid ) ? $ pageid : false ; }
Show custom 404 page (function)
Show custom 404 page ( function )