Measure time in ONLY HOUR format

Welcome to WPSE. You can try to filter it with: add_filter( ‘human_time_diff’, ‘wpse_hourly_human_time_diff’, 10, 4 ); where the filter’s callback is e.g. /** * Human time difference in hours only. * * @param string $since The difference in human readable text. * @param int $diff The difference in seconds. * @param int $from Unix timestamp … Read more

How can I change the date format of the revision list?

You can filter the output like bellow: <?php /** * @param $revision_date_author * @param $revision * @param $link * @return mixed */ function filter_wp_post_revision_title_expanded( $revision_date_author, $revision, $link ) { $revision = get_post( $revision ); if ( ! $revision ) { return $revision; } if ( ! in_array( $revision->post_type, array( ‘post’, ‘page’, ‘revision’ ), true ) … Read more

Email sent from WordPress has HTML tags

The default content type is ‘text/plain’ which does not allow using HTML. You can set the content type of the email by including a header like “Content-type: text/html” $headers=”Content-type: text/html;charset=utf-8″ . “\r\n”; $headers .= ‘From: XXXXXX.com <[email protected]>’ . “\r\n”; $subject=”Registration from xxxxx.com” . “\r\n”; $message = $result_email_text; wp_mail($_POST[‘admin_email’], $subject, $message, $headers ); Or you can … Read more

How to add custom HTML tags in the visual mode via keyboard only?

if you are using classic TinyMCE editor then perhaps you can modify it add custom styles. Following code may help you create visual buttons for adding inline styles. // Add Formats Dropdown Menu To MCE if ( ! function_exists( ‘mk_style_select’ ) ) { function mk_style_select( $buttons ) { array_push( $buttons, ‘styleselect’ ); return $buttons; } … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)