/** * Disable the emojis in WordPress. */ add_action( ‘init’, function () { remove_action( ‘wp_head’, ‘print_emoji_detection_script’, 7 ); remove_action( ‘admin_print_scripts’, ‘print_emoji_detection_script’ ); remove_action( ‘wp_print_styles’, ‘print_emoji_styles’ ); remove_action( ‘admin_print_styles’, ‘print_emoji_styles’ ); remove_filter( ‘the_content_feed’, ‘wp_staticize_emoji’ ); remove_filter( ‘comment_text_rss’, ‘wp_staticize_emoji’ ); remove_filter( ‘wp_mail’,…Continue reading
add_filter(‘the_generator’, ‘__return_empty_string’);Continue reading
/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading
// Add custom Bulk Action to the Pages view function custom_add_bulk_action() { global $post_type; if ($post_type == ‘page’) { ?>Continue reading
/** * @link https://library.wpcode.com/snippet/ro8wy3ow/ */ add_filter( ‘simpay_payment_element_config’, /** * @param arary $params Payment Element configuration. * @return array */ function( $config ) { $config[‘terms’][‘usBankAccount’] = ‘never’; $config[‘terms’][‘card’] = ‘never’; return $config; } );Continue reading
add_filter(‘wcvendors_pro_table_rows_wcv_refund_request’, ‘change_refund_actions_labels’); function change_refund_actions_labels( $rows ) { foreach ( $rows as $row ) { // Add filter to change the label for row with row ID. add_filter(‘wcv_refund_request_row-actions_’ . $row->ID, ‘change_refund_action_label’); } return $rows; } function change_refund_action_label( $actions ) { $actions[‘view_details’][‘label’]…Continue reading
add_filter( ‘wcvendors_recent_order_table_columns’, ‘change_commission_label’ ); /** * Change the label of the commission column * * @param array $columns The columns to display. * * @return array */ function change_commission_label( $columns ) { $columns[‘commission’] = __( ‘Fees’, ‘wcvendors-pro’ ); return $columns;…Continue reading
// instead the _e(), __() or _x() use the escaped version _e(‘Email Summary’, ‘duplicator-pro’); // this escaped version is safe to use esc_html_e(‘Email Summary’, ‘duplicator-pro’); ?> // This block is not safe to use since the data is not being…Continue reading