#List of countries
It's time someone compiled a list of countries to use within a web application. This gist attempts to make a first move at that.
I've also compiled a list of nationalities
| <?php | |
| if (!defined('ABSPATH')) die('-1'); | |
| // Class started | |
| class stockVCExtendAddonClass { | |
| function __construct() { | |
| // We safely integrate with VC with this hook | |
| add_action( 'init', array( $this, 'stockIntegrateWithVC' ) ); |
#List of countries
It's time someone compiled a list of countries to use within a web application. This gist attempts to make a first move at that.
I've also compiled a list of nationalities
It's time someone compiled a list of nationalities to use within a web application. This gist attempts to make a first move at that.
##List of countries
I've also compiled a list of countries
| <?php | |
| use Elementor\Controls_Manager; | |
| use Elementor\Element_Base; | |
| use Elementor\Core\Files\CSS\Post; | |
| use Elementor\Core\DynamicTags\Dynamic_CSS; | |
| // Exit if accessed directly | |
| if (!defined('ABSPATH')) { | |
| exit; |
| <?php | |
| /** | |
| * This requires version 1.3+ for WP Zapier Plugin - https://yoohooplugins.com/plugins/zapier-integration/ | |
| * You may follow this function as a guide to send user meta to Zapier, or any other data really. | |
| * This code runs whenever a user's profile is updated. | |
| * Add the below code to a custom plugin/Child Theme function.php | |
| */ | |
| function my_wp_zapier_send_meta( $array, $user, $user_id ) { |
| /* iPhone 6 landscape */ | |
| @media only screen and (min-device-width: 375px) | |
| and (max-device-width: 667px) | |
| and (orientation: landscape) | |
| and (-webkit-min-device-pixel-ratio: 2) | |
| { } | |
| /* iPhone 6 portrait */ | |
| @media only screen | |
| and (min-device-width: 375px) |
| /* Sets the user's display name (always) to first name last name, when it's available ************************************** | |
| ** http://stackoverflow.com/questions/9326315/wordpress-change-default-display-name-publicy-as-for-all-existing-users *** */ | |
| /* !아이디 대신 이름으로 나타내기 ********************************************************************************************* */ | |
| /* Sets the user's display name (always) to first name last name, when it's avail. */ | |
| add_action ('admin_head','make_display_name_f_name_last_name'); | |
| function make_display_name_f_name_last_name(){ | |
| $users = get_users(array('fields'=>'all')); | |
| foreach($users as $user){ | |
| $user = get_userdata($user->ID); | |
| $display_name = $user->first_name; |
| add_action('admin_enqueue_scripts', 'ds_admin_theme_style'); | |
| add_action('login_enqueue_scripts', 'ds_admin_theme_style'); | |
| function ds_admin_theme_style() { | |
| if (!current_user_can( 'manage_options' )) { | |
| echo '<style>.update-nag, .updated, .error, .is-dismissible { display: none; }</style>'; | |
| } | |
| } | |
| /* Hide wp-admin side notice with CSS */ |