Basic input masks use symbols to create the mask.
9
: Numerica
: AlphabeticalA
: Alphabetical (forces uppercase)*
: Alphanumeric&
: Alphanumeric (forces uppercase)
<?php | |
/** | |
* Custom shortcode to display WPForms form entries count for a form. | |
* | |
* Basic usage: [wpf_entries_count id="FORMID" type="TYPE"]. | |
* | |
* @param array $atts Shortcode attributes. | |
* | |
* @return string | |
*/ |
/* Pinterest images */ | |
.pin-it-image { | |
display: block; | |
position: relative; | |
img { | |
display: block; | |
} |
There are different ways to install PHPCS, the method below uses PEAR which installs it within your PHP installation.
First, locate the active MAMP Pro PHP installation.
$ which php
<?php | |
/** | |
* Manually run the v1.4.3 entries upgrade routine. | |
* | |
*/ | |
function wpf_v143_upgrade_manual() { | |
// Fetch all entries. | |
$entries = wpforms()->entry->get_entries( | |
array( |
<?php | |
/** | |
* Check entry limit, if past limit display a message. | |
* | |
* @param array $form_data | |
* @param object $form | |
*/ | |
function wpf_form_check_entry_limit( $form_data, $form ) { | |
global $wpf_form_open; |
<?php | |
/** | |
* Registers the Request URI smart tag. | |
* | |
* @param array $tags | |
* @return array | |
*/ | |
function wpf_smarttag_request_uri_register( $tags ) { | |
$tags['request_uri'] = 'Request URI'; |
First let's make sure HB is updated. Open up terminal for the following steps.
$ brew update
Enable PHP logging in MAMP Pro, under the PHP settings (screenshot)
Inside your MAMP Sites
directory (or equivalent), create a new directory pimpmylog
Create a new host, such as phplog.local
, in MAMP for easy access (screenshot)
<?php | |
/** | |
* Narrow down post displayed by category. | |
* | |
* See https://codex.wordpress.org/Template_Tags/get_posts | |
* | |
* @param array $args | |
* @param array $field | |
* @param int $form_id | |
* @return array |