How can I see a varibles value when my plugin runs?

Using the following modifications and adding in die() stopped the script and output whatever the variables value was at that time. Thanks to @toscho function cf7pp_after_send_mail( $contact_form ) { global $postid; $submission = WPCF7_Submission::get_instance(); if ( $submission ) { $posted_data = $submission->get_posted_data(); $postid = $posted_data[‘_wpcf7’]; $enable = get_post_meta( $postid, “_cf7pp_enable”, true); $email = get_post_meta( $postid, … Read more

Using ACF Custom Field value in a URL with do_shortcode() [closed]

Simply you need to replace the_field(‘video’) with get_field(‘video’). Why? Because according to ACF documentation; get_field($field_name, $post_id, $format_value) Returns the value of the specified field. Whereas on the other hand the_field($field_name, $post_id) Displays the value of the specified field. (this is the same as “echo get_field($field_name)”) Hope this might help others as well.

Create a variable with string, array or multiple values

the last $file takes priority over the previous That’s because you assign the new value to the $file variable at every line. The only way I see you can do it by using the array: <?php // define directory list $directories = array( ‘home’, ‘pages’, ‘blog’, ‘single-posts’, ‘products’, ‘templates’, ‘products’ ); // run through directories … Read more

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