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
Fisier includes/class-woo-smartbill-wrapper.php functia storneaza sub linia 204( $data = $this->get_invoice_data( $order_id, true ); ) | |
$data = apply_filters( 'woo_smartbill_storneaza_data', $data, $order_id ); | |
Fisierul includes/class-woo-smartbill-gestiune.php | |
1. Sub linia 20( add_filter( 'woo_smartbill_genereaza_data', array( $this, 'add_usestock' ), 20, 2 ); ) adaugam : | |
add_filter( 'woo_smartbill_storneaza_data', array( $this, 'add_usestock' ), 20, 2 ); | |
2. In functia add_gestiune linia 254 comentam urmatorul cod : | |
if ( $stornare ) { |
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 | |
add_filter( 'upload_dir', 'change_upload_dir_for_dlm', 30 ); | |
function change_upload_dir_for_dlm( $pathdata ){ | |
if ( isset( $_POST['type'] ) && 'dlm_download' === $_POST['type'] ) { | |
if ( empty( $pathdata['subdir'] ) ) { | |
$pathdata['path'] = $pathdata['path'] . '/private'; | |
$pathdata['url'] = $pathdata['url'] . '/private'; | |
$pathdata['subdir'] = '/private'; |
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 | |
public function add_query_args__current( $args, $atts ) { | |
/* | |
* The query does not change if the current post type or the specific post is excluded. | |
*/ | |
if ( wpmtst_assignment_is_post_excluded( get_the_ID() ) ) { | |
return $args; | |
} | |
/* |
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
add_filter( 'modula_shortcode_item_data', 'modula_ada_compliance', 99 ); | |
function modula_ada_compliance( $item_data ){ | |
$item_data['link_attributes']['aria-label'] = 'opens light box for ' . $item_data['img_attributes']['alt']; | |
return $item_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
var options = { | |
buttons: ['edd-purchase-button'], | |
environment: 'production', | |
condition: function () { | |
var valid = true; | |
if ($('#edd-email').val() == '') { | |
valid = false; | |
} | |
$('#edd_purchase_form input.required').each(function() { | |
if($(this).val() == '') { |
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 | |
/** | |
* @copyright Intelligent IT SRL 2018 | |
*/ | |
// Add metabox in order page | |
function smartbill_order_details_meta_box() { | |
//afisare doar daca s-a publicat / salvat postarea | |
if (isset($_GET['post'])){ |
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
add_filter( 'woocommerce_formatted_address_replacements', 'woo_facturare_extra_labels', 95, 2 ); | |
function woo_facturare_extra_labels( $replacements, $args ){ | |
$replacements['{first_name}'] = ( '' != $replacements['{first_name}'] ) ? 'Label: ' . $replacements['{first_name}'] : $replacements['{first_name}']; | |
$replacements['{last_name}'] = ( '' != $replacements['{last_name}'] ) ? 'Label: ' . $replacements['{last_name}'] : $replacements['{last_name}']; | |
$replacements['{name}'] = ( '' != $replacements['{name}'] ) ? 'Label: ' . $replacements['{name}'] : $replacements['{name}']; | |
$replacements['{company}'] = ( '' != $replacements['{company}'] ) ? 'Label: ' . $replacements['{company}'] : $replacements['{company}']; | |
$replacements['{address_1}'] = ( '' != $replacements['{address_1}'] ) ? 'Label: ' . $replacements['{address_1}'] : $replacements['{address_1}']; | |
$replacements['{address_2}'] = ( '' != $replacements['{address_2}'] ) ? 'Label: ' . $replacements['{address_2}'] : $replacements['{address_2}']; |
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
<div class="<?php echo esc_attr(implode( ' ', $data->item_classes )) ?>"<?php echo Modula_Helper::generate_attributes( $data->item_attributes ) ?> > | |
<?php do_action( 'modula_item_before_link', $data ); ?> | |
<?php if ( 'no-link' != $data->lightbox ): ?> | |
<a<?php echo Modula_Helper::generate_attributes( $data->link_attributes ) ?> class="<?php echo esc_attr(implode( ' ', $data->link_classes )) ?>"> | |
<?php endif ?> | |
<?php do_action( 'modula_item_after_link', $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 | |
add_filter( 'modula_shortcode_item_data', 'photoguy_link_title', 99, 3 ); | |
function photoguy_link_title( $item_data, $item, $settings ){ | |
if( isset( $item_data['link_attributes']['title'] ) ){ | |
unset( $item_data['link_attributes']['title'] ); | |
} | |
if( isset( $item_data['link_attributes']['data-sub-html'] ) ){ | |
unset( $item_data['link_attributes']['data-sub-html'] ); |
NewerOlder