custom post type plugin error

I followed the following to set up a plugin for custom post types: https://kinsta.com/blog/wordpress-custom-post-types/#register But i am getting the error: Parse error: syntax error, unexpected ”, $args ); ‘ (T_CONSTANT_ENCAPSED_STRING), expecting ‘)’ in D:xampphtdocssimplerPRwp-contentpluginsgoldnuggs-custom-post-typegoldnuggs-cpt.php on line 48 Can anyone see my mistake? <?php /* Plugin Name: Register Custom Post Types */ function goldnuggs_register_post_type() { $labels … Read more

Display Sales Quantity by product – Woocommerce

I need to display product sales quantity on my orders backoffice. Someone can give some help with this? I can´t find any solution for this.. I already have this: add_filter( 'manage_edit-shop_order_columns', 'admin_orders_list_add_column', 10, 1 ); function admin_orders_list_add_column( $columns ){ $columns['custom_column2'] = __( 'Quantidade', 'woocommerce' ); return $columns; } add_action( 'manage_shop_order_posts_custom_column' , 'admin_orders_list_column_content', 10, 2 ); … Read more