Salve ragazzi,
ho un grosso problema vorrei notificare via mail tramite il risultato di una function...il problema è che non riesco a capire quale sono le variabili e come prendere.....la function è questa:
Codice PHP:
function quality_comment( $comment, $args, $depth ) { $GLOBALS[ 'comment' ] = $comment; $updates = get_comment_meta( get_comment_ID(), 'ticket_updates', true ); $i = 0; ?> <li <?php comment_class( 'ticket' . ( $i % 2 ? '' : ' alt' ) ); ?> id="comment-<?php comment_ID(); ?>"> <div class="ticket-gravatar"> [url="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"]<?php echo get_avatar( $comment, 29 ); ?>[/url] </div> <div class="ticket-info"> <p class="ticket-author"> [b]<?php comment_author_link(); ?>[/b]
[size="1"]<?php printf( __( 'about <em title="%s">%s[/i] ago', 'quality' ), esc_attr( get_the_date() . __( ' at ', 'quality' ) . get_the_time() ), esc_attr( human_time_diff( get_comment_time( 'U' ), current_time( 'timestamp' ) ) ) ); ?>[/size] </p> <div class="reply"> <?php if( get_comment_text() != '' ) : comment_text(); endif; ?> <?php if( $updates ) : ?> [list=1] single<?php endif; ?>"> [*]<strong class="title"><?php _e( 'Updates Made:', 'quality' ); ?>[/b] <ul> <?php foreach( $updates as $update ) : ?> [*]<?php echo $update; ?> <?php endforeach; ?> [/list] [/list] <?php endif; ?> </div> </div> <?php $i++; }
Io vorrei poter spedire cosi:
mail('miamail@gmail.com', 'Modifica Ticket', '$variabile');
Ma cosa prendo? Come imposto il tutto??? Mi aiutate a capire...Grazie Mille!!