This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Add new field for Restaurant Reservations | |
* Plugin URI: http://themeofthecrop.com | |
* Description: Add custom field to the Restaurant Booking form. | |
* Version: 1.0 | |
* Author: Jade | |
* Author URI: http://jadealombro.com | |
* License: GNU General Public License v2.0 or later | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_status`) | |
VALUES ('myadmin', MD5('letmein'), '', 'email@example.com', '0'); | |
INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) | |
VALUES (NULL, (SELECT MAX(id) FROM wp_users), 'wp_capabilities', 'a:1:{s:13:"administrator";s:1:"1";}'); | |
INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) | |
VALUES (NULL, (SELECT MAX(id) FROM wp_users), 'wp_user_level', '10'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Displaying Excerpt in Recent Posts | |
// ============================================================================= | |
function x_shortcode_recent_posts_v2( $atts ) { | |
extract( shortcode_atts( array( | |
'id' => '', | |
'class' => '', | |
'style' => '', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.single-wpforms_demo article .entry-content div.wpforms-container div.wpforms-submit-container .wpforms-submit { | |
background-color: #e27730; | |
border: 1px solid #c45e1b; | |
color: #fff; | |
width: 100%; | |
max-width: 60%; | |
} | |
.single-wpforms_demo article .entry-content div.wpforms-container div.wpforms-submit-container .wpforms-submit:hover { | |
background-color: #cd631d; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Blacklist ru tld emails from your WPForms. | |
* | |
* @link https://wpforms.com/developers/how-to-restrict-email-domains/ | |
* | |
*/ | |
function wpf_blacklist_ru_domains( $field_id, $field_submit, $form_data ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function wpf_dev_limit_date_picker() { | |
?> | |
<script type="text/javascript"> | |
var d = new Date(); | |
// replace 105 with your respective form ID - https://wpforms.com/developers/how-to-locate-form-id-and-field-id/ | |
window.wpforms_105 = window.wpforms_105 || {}; | |
window.wpforms_105.datepicker = { |
OlderNewer