This file contains hidden or 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
/** | |
* External dependencies | |
*/ | |
import { map, isUndefined } from 'lodash' | |
import { withRouter } from 'react-router-dom' | |
import { TableCard } from '@woocommerce/components' | |
/** | |
* WordPress dependencies | |
*/ |
This file contains hidden or 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 | |
/** | |
* Notify about the default tagline if the user hasn't changed it | |
*/ | |
private function default_tagline_notice() { | |
$customize_url = add_query_arg( [ 'autofocus[control]' => 'blogdescription' ], wp_customize_url() ); | |
$info_message = sprintf( | |
/* translators: 1: link open tag; 2: link close tag. */ | |
esc_html__( 'You still have the default WordPress tagline, even an empty one is probably better. %1$sYou can fix this in the customizer%2$s.', 'rank-math' ), | |
'<a href="' . esc_attr( $customize_url ) . '">', |
This file contains hidden or 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 | |
/** | |
* Remove woocommerce and woo-subscriptions delete actions. | |
* @return [type] [description] | |
*/ | |
function mts_remove_delete_actions() { | |
remove_action( 'delete_user', 'WC_Subscriptions_Manager::trash_users_subscriptions' ); | |
remove_action( 'deleted_user', 'wc_reset_order_customer_id_on_deleted_user' ); | |
} |
This file contains hidden or 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 | |
Kirki::add_field( 'gs', array( | |
'type' => 'color', | |
'settings' => 'my_setting', | |
'label' => __( 'Header Background Color', 'my_textdomain' ), | |
'section' => 'my_section', | |
'default' => '#0088CC', | |
'priority' => 10, | |
'output' => array( | |
array( |