http://twitter.com/share?text=<TITLE>&url=<URL>
E.g. http://twitter.com/share?text=This+is+google+a+search+engine&url=https%3A%2F%2Fwww.google.com
http://www.facebook.com/sharer.php?u=&p[title]=
| <?php | |
| class acf_filter_post_object { | |
| static function setup() { | |
| add_filter( 'acf/fields/post_object/query/name=FIELD_NAME', __CLASS__ . '::only_current_terms', 10, 3 ); | |
| } | |
| /* | |
| Only current terms to be shown within the taxonomy |
| # | |
| # Verify captcha | |
| $post_data = http_build_query( | |
| array( | |
| 'secret' => CAPTCHA_SECRET, | |
| 'response' => $_POST['g-recaptcha-response'], | |
| 'remoteip' => $_SERVER['REMOTE_ADDR'] | |
| ) | |
| ); | |
| $opts = array('http' => |
| <?php | |
| add_action( 'init', 'register_my_taxo' ); | |
| function register_my_taxo() { | |
| register_taxonomy( 'immo_cat', 'immobilier', array( | |
| 'hierarchical' => false, | |
| 'label' => 'Type de biens', | |
| // je déclare le slug de taxo de manière à pouvoir le traduire | |
| 'rewrite' => array( 'slug' => icl_t('nebula', 'property-type-slug', 'type-bien-immobilier' ) ), | |
| ) ); | |
| } |
| Drop in replace functions for setTimeout() & setInterval() that | |
| make use of requestAnimationFrame() for performance where available | |
| http://www.joelambert.co.uk | |
| Copyright 2011, Joe Lambert. | |
| Free to use under the MIT license. | |
| http://www.opensource.org/licenses/mit-license.php |