contact-field
The Jetpack by WordPress.com contact field shortcode.
Usage
- // basic usage
- echo do_shortcode('[contact-field]');
- // variable usage
- $result = do_shortcode('[contact-field]');
- echo $result;
Defined (1)
The shortcode is defined in the following location(s).
- /modules/contact-form/grunion-contact-form.php
- /* Adds our contact-form shortcode
- * The "child" contact-field shortcode is enabled as needed by the contact-form shortcode handler
- */
- function add_shortcode() {
- add_shortcode( 'contact-form', array( 'Grunion_Contact_Form', 'parse' ) );
- add_shortcode( 'contact-field', array( 'Grunion_Contact_Form', 'parse_contact_field' ) );
- }
- static function tokenize_label( $label ) {
- return '{' . trim( preg_replace( '#^\d+_#', '', $label ) ) . '}';
- }