Note: You need to have to Heroku PGBackup addon first heroku addons:add pgbackups
..
Creates the backup on heroku first:
heroku pgbackups:capture
<?php | |
// Add fields to new vendor form | |
add_action( 'shop_vendor_add_form_fields', 'custom_add_vendor_fields', 2, 1 ); | |
function custom_add_vendor_fields( $taxonomy ) { | |
?> | |
<div class="form-field"> | |
<label for="vendor_website"><?php _e( 'Vendor website' ); ?></label> | |
<input type="text" name="vendor_data[website]" id="vendor_website" class="vendor_fields" /><br/> | |
<span class="description"><?php _e( 'The vendor\'s website.' ); ?></span> |
function getCities() { | |
//get the value from the 'parent' field, sent via the AJAX post. | |
$choice = $_POST['parent_option']; | |
//Depending on the value of $choice, return a different array. | |
switch($choice) { | |
case "France": | |
$cities = [ | |
"Paris" =>"Paris", |
/** | |
* Convert myCRED Points into WooCommerce Coupon | |
* Requires myCRED 1.4 or higher! | |
* @version 1.3.1 | |
*/ | |
add_shortcode( 'mycred_to_woo_coupon', 'mycred_pro_render_points_to_coupon' ); | |
function mycred_pro_render_points_to_coupon( $atts, $content = NULL ) { | |
// Users must be logged in | |
if ( ! is_user_logged_in() ) |
<?php | |
/* | |
Use this recipe in combination with MyCRED to award points to members when signing up | |
for Level 1 membership. This code gist could be customized to give points for another | |
membership level ID, award recurring points for each subscription payment, and more. | |
MyCRED can be downloaded/configured here: https://wordpress.org/plugins/mycred/ | |
*/ | |
// Register Hook for PMPro Membership Points at Signup |
/** | |
* Ultimate member - Display User ID below Username in Profile Page. | |
* @link https://wordpress.org/plugins/ultimate-member/ | |
*/ | |
function custom_display_id_profile_page(){ | |
echo '<p>'; | |
esc_html_e( 'Membership ID: ', 'theme-name'); | |
echo um_profile_id(); | |
echo '</p>'; |
<?php | |
add_filter( 'wpseo_canonical', 'um_custom_user_yoast_canonical' ); | |
function um_custom_user_yoast_canonical() { | |
if( function_exists('um_is_core_page') ){ | |
if ( um_is_core_page('user') && um_get_requested_user() ) { | |
um_fetch_user( um_get_requested_user() ); | |
/* add new tab called "mytab | |
/*Original author is Ultimate Member*/ | |
add_filter('um_account_page_default_tabs_hook', 'my_custom_tab_in_um', 100 ); | |
function my_custom_tab_in_um( $tabs ) { | |
$tabs[800]['mytab']['icon'] = 'um-faicon-pencil'; | |
$tabs[800]['mytab']['title'] = 'My Custom Tab'; | |
$tabs[800]['mytab']['custom'] = true; | |
return $tabs; | |
} |
add_filter('um_admin_custom_search_filters','add_my_custom_search_fields', 10, 1); | |
function add_my_custom_search_fields($fields) { | |
$fields['field_meta_key'] = array('title' => 'Enter field title'); // replace 'field_meta_key' with your field meta key | |
return $fields; | |
} |
############################################################ | |
## Content of the Traders in Financial Futures (TFF) Report | |
## http://www.cftc.gov/ucm/groups/public/@commitmentsoftraders/documents/file/tfmexplanatorynotes.pdf | |
############################################################ | |
# Dealer/Intermediary | |
# These participants are what are typically described as the "sell side” of the market. Though they | |
# may not predominately sell futures, they do design and sell various financial assets to clients. | |
# They tend to have matched books or offset their risk across markets and clients. Futures | |
# contracts are part of the pricing and balancing of risk associated with the products they sell and | |
# their activities. These include large banks (U.S. and non-U.S.) and dealers in securities, swaps |