Max file size not updating

1] To do this, change the upload_max_filesize and post_max_size directives in your php.ini file. To ensure that file uploads work correctly, the post_max_size directive should be a little larger than the upload_max_filesize. For example, the following settings demonstrate how to set a file upload limit to 20 megabytes: upload_max_filesize = 20M post_max_size = 21M 2] … Read more

Adding extra SVGs to TwentyNineteen child theme using class TwentyNineteen_SVG_Icons

Ok, this is what I did: First, I replicated classes/class-twentynineteen-svg-icons.php to the child theme. Renamed to class-mytheme-svg-icons.php. Added a extend with my New_SVG_Icons class: class New_SVG_Icons extends TwentyNineteen_SVG_Icons { /** * Gets the SVG code for a given icon. */ public static function get_svg( $group, $icon, $size ) { if ( ‘ui’ == $group ) … Read more

How to Acheive the custom woocommerce category template

Lets see if this is helpfull. From your description you have/want the following setup: -Category –Sub-Category-1 —Products of Sub-Category-1 –Sub-Category-2 —Products of Sub-Category-2 –Sub-Category-3 —Products of Sub-Category-3 OK, so you first need to get all top level categories. You can get them with something like this: $top_categories_args = array( ‘taxonomy’ => ‘product_cat’, // the taxonomy … Read more

Remove bulk actions based on user role or capabilities

I would do this this way – Just add a new mu plugin or normal plugin: <?php defined( ‘ABSPATH’ ) OR exit; /** Plugin Name: Limit Bulk actions to Editor & Admin */ add_action( ‘wp_loaded’, ‘wpse_53371_remove_bulk_actions’ ); function wpse_53371_remove_bulk_actions() { if ( ! is_admin() ) return; if ( ! current_user_can( ‘delete_others_pages’ ) ) { add_filter( … Read more