How can I insert a dynamic URL in my email template?

I have no experience with this plugin, but it looks like you can add extra template variables with a filter named ‘wpbe_tags’: function template_vars_replacement( $template ) { $to_replace = array( ‘blog_url’ => get_option(‘siteurl’), ‘home_url’ => get_option(‘home’), ‘blog_name’ => get_option(‘blogname’), ‘blog_description’ => get_option(‘blogdescription’), ‘admin_email’ => get_option(‘admin_email’), ‘date’ => date_i18n(get_option(‘date_format’)), ‘time’ => date_i18n(get_option(‘time_format’)) ); $to_replace = apply_filters(‘wpbe_tags’, … Read more

How to close tab automatically if URL has specific word? [closed]

You will need Javascript to do this. You can use window.close(). So adding this script to your page should do the job: function check_if_should_close(url) { if ( PUT YOUR CONDITION HERE ) // i.e. url.match(/\?deleted=1/) return true; return false; } if ( check_if_should_close(document.location.href) ) { window.close(); }

Unnecessary url

Always include http:// in your URLs. Change www.youtube.com in http://www.youtube.com/ or even better http://youtube.com/ If you forget the http:// then the data is being parsed like it is another page on your website rather than an external website, that’s why you’ll see 192.168.1.100/wordpress/www.youtube.com

Adding more onto an esc_url [closed]

To concatenate strings, PHP uses the concatenation operator .. Thus, to append a string to the current user link, you can use bp_core_get_userlink( get_the_author_meta( ‘ID’ ), false, true ) . ‘/posts/’ Note that I’ve removed the first part of the assignment from the $no_anchor and $just_link parameters, as the values should be passed, and not … Read more

WordPress File URL Path Incorrect

Because you only have one slash instead of two in your URL: http:/eatdrink.ca That double slash ain’t just for looks. 🙂 Go to the hidden options.php page located at /wp-admin/options.php. Check and see what the “upload_url_path” is set to. Make sure it has a double slash there (if it’s empty, that is acceptable as well, … Read more

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