Hot answers tagged

1

You can try minify html from the contact form 7 To completely disable the wpautop filter, you can use: remove_filter('the_content', 'wpautop');


1

Absolutely, no code modification needed. Simply create an eWay feed (looks like it's only available in their Pro version) for the form you want to process with eWay, and set a Stripe feed for the form you want to process with Stripe.


1

Check the documentation: Return: (int|WP_Error) The post ID on success. The value 0 or WP_Error on failure. Thus: $result = wp_insert_post( $data ); if ( $result && ! is_wp_error( $result ) ) { $post_id = $result; // Do something else }


1

You'll have to do this in two steps. First, you will create a post in the draft mode, using wp_insert_post(). The wp_insert_post itself will return to you the ID of the inserted post: <?php $new_post = array( 'post_title' => 'Draft title', 'post_status' => 'draft' 'post_type' => 'my_custom_type' ); $postId = ...



Only top voted, non community-wiki answers of a minimum length are eligible