eigene kommentarfehlerseite

so hab ichs getan

zuerst eine neue seite in deinem wordpress theme, hier genannt commenterror.php

ich hab einfach die 404.php dupliziert … umbenannt … modifiziert

danach den untrigen code in die funktions.php gefeuert

 
/** custom comment error site */
 
 
function custom_comment_error( $message, $title='', $args=array() ) {
 
 
  $errorTemplate = get_theme_root().'/'.get_template().'/commenterror.php';
 
 
  require_once( $errorTemplate );
 
 
  die();
}
 
function get_custom_comment_error() {
 
  return 'custom_comment_error';
 
}
 
 
add_filter( 'wp_die_handler', 'get_custom_comment_error' );

talk | share: , , , | | | home → mathematik und informatik → eigene kommentarfehlerseite

2 thoughts on “eigene kommentarfehlerseite

talk to me

<a href="" title=""> <b> <cite> <code> <em> <i> <q cite=""> <s> <pre lang="" line="" escaped="" cssfile=""> <span lang=""> <img src=""> <u>