Open all external links in new window – need help with the code

Way to complicated to do this with php in WordPress, I’d advice on doing this on the frontend with a bit of jquery magic. I wrote a tiny jQuery plugin that opens all external links (all links with another domain/host name than the current site) in a new window. Check out the plugin: https://www.npmjs.com/package/jquery.jold.external-hrefs To … Read more

WordPress Memory limit not increasing

Try to create .user.ini file in root and put below code upload_max_filesize = 500M post_max_size = 256M memory_limit = 500M max_execution_time = 300 max_input_vars = 500M Try and let me know if any query. Hope it will help!

How to NOT override inline css rules

Please see this post about including styles and scripts correctly. As far as I can see, you are just throwing in the style.css, giving WordPress not the opportunity to decide, which stylesheet comes when. In order to do that, you need to register your style first, then WordPress can decide according to your priority, where … Read more

Pull GET parameter from URL in functions.php

Contact Form 7 provides a recipe for Validation as a Filter which looks very much like what you are trying to do. Adapting their example to your code, I believe the following should work for you: add_filter( ‘wpcf7_validate_text*’, ‘custom_password_reset_validation_filter’, 10, 2 ); function custom_password_reset_validation_filter( $result, $tag ) { if (‘token’==$tag->name){ $token = isset($_POST[‘token’]) ? $_POST[‘token’] … Read more

MySQL update text field with ‘

Apparently someplace in the wp_list_table, or maybe someplace else, the escape character \ was inserted before any ‘ . I was able to solve this by adding this line of code just before the $wpdb->update statement. $item[‘RecordedSubdivision’] = str_replace(“\'”, “‘”,$item[‘RecordedSubdivision’]);