The apply_filters_deprecated was written incorrectly and it also threw errors like above.
Wrong code (won’t allow plugin to be activated and throws error on line 344 notice):
$param_args = apply_filters_deprecated(
'wcv_admin_commissions_params',
array(array(
'confirm_prompt' => __( 'Are you sure you want mark all commissions paid?', 'wc-vendors' ),
'confirm_delete_commission' => __( 'Are you sure delete this commission?', 'wc-vendors' ),
'confirm_bulk_delete_commission' => __( 'Are you sure delete these commissions?', 'wc-vendors' ),
),
),
'2.3.0',
'wcvendors_admin_commissions_params',
);
Code that works (please let us know if this will affect the plugin otherwise. It allowed me to activate the plugin and seems to work now):
$param_args = apply_filters_deprecated(
'wcv_admin_commissions_params',
array(array(
'confirm_prompt' => __( 'Are you sure you want mark all commissions paid?', 'wc-vendors' ),
'confirm_delete_commission' => __( 'Are you sure delete this commission?', 'wc-vendors' ),
'confirm_bulk_delete_commission' => __( 'Are you sure delete these commissions?', 'wc-vendors' ),
)),'2.3.0','wcvendors_admin_commissions_params' );
-
This reply was modified 3 years, 4 months ago by midway-wp.