how to add div with content after wpcf7mailsent

i try to add my own sucess message after sending contact form with contactform 7. I use the following code: document.body.onload = addElement; document.addEventListener( ‘wpcf7mailsent’, function( event ) { if ( ‘12295’ == event.detail.contactFormId ) { function addElement () { var newDiv = document.createElement(“div”); var newContent = document.createTextNode(“Hi there and greetings!”); newDiv.appendChild(newContent); var currentDiv =…

Details

WooCommerce WC_Admin_Report CSV Export Not Firing

WC_Admin_Report has a method to allow the Export CSV button to appear within the custom report as so… public function get_export_button() { $current_range = ! empty( $_GET[‘range’] ) ? sanitize_text_field( wp_unslash( $_GET[‘range’] ) ) : ‘7day’; ?> <a href=”#” download=”report-<?php echo esc_attr( $current_range ); ?>-<?php echo esc_attr( date_i18n( ‘Y-m-d’, current_time( ‘timestamp’ ) ) ); ?>.csv”…

Details

Gutenberg – How to prevent block from being deleted and reordered/moved

I have a post type which is prepopulated with a Gutenberg block: function blog_block_template() { $post_type_event = get_post_type_object( ‘event’ ); $post_type_event->template = array( array( ‘acf/single-event-meta’ ), ); } add_action( ‘init’, ‘blog_block_template’ ); This certain block should not be deleted or reordered. I don’t want to use a meta box because the meta box would be…

Details

category/category_name pagination 404 error

<div class=”row”> <?php $currCat = get_category(get_query_var(‘cat’)); $cat_name = $currCat->name; $cat_id = get_cat_ID( $cat_name ); $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; $query = array( ‘paged’=>$paged, ‘posts_per_page’=> 3, ‘orderby’=>’rand’, ‘post_type’=>’product’, ‘cat’ => $cat_id ); $queryObject = new WP_Query($query); while ($queryObject->have_posts()) : $queryObject->the_post(); $post_category = get_the_category(get_the_ID()); ?> <div class=”col-md-4 module”> <a class=”” href=”<?php the_permalink(); ?>”> <!– ……

Details

Installing latest version of GitKraken 6.5.9 on Kubuntu 19.10 via snap show wrong version

I am using GitKraken on Kubuntu 19.10 and installed via snap. My GitKraken app about info shows using version 6.4.1 as seen at below screenshot: When I check via command line and Snap Store, it shows the latest version is 6.5.0. [email protected]:~$ snap list gitkraken Name Version Rev Tracking Publisher Notes gitkraken 6.5.0 150 stable…

Details