First, Lets find out what version of PHP we're running (To find out if it's the default version).
To do that, Within the terminal, Fire this command:
which php
| # This hosts file is brought to you by Dan Pollock and can be found at | |
| # http://someonewhocares.org/hosts/ | |
| # You are free to copy and distribute this file for non-commercial uses, | |
| # as long the original URL and attribution is included. | |
| #<localhost> | |
| 127.0.0.1 localhost | |
| 127.0.0.1 localhost.localdomain | |
| 255.255.255.255 broadcasthost | |
| ::1 localhost |
| add_filter( 'wpcf7_validate_text', 'no_urls_allowed', 10, 3 ); | |
| add_filter( 'wpcf7_validate_text*', 'no_urls_allowed', 10, 3 ); | |
| add_filter( 'wpcf7_validate_textarea', 'no_urls_allowed', 10, 3 ); | |
| add_filter( 'wpcf7_validate_textarea*', 'no_urls_allowed', 10, 3 ); | |
| function no_urls_allowed( $result, $tag ) { | |
| $tag = new WPCF7_Shortcode( $tag ); | |
| $type = $tag->type; | |
| $name = $tag->name; |