Add Admin Styles And Admin Scripts
// Styles and Scripts
add_action('admin_head', 'my_custom_styles_and_scripts');
function my_custom_styles_and_scripts() {
    echo '
     <script src="/wp-content/plugins/webfootprint-stock-manager-old/assets/js/scripts.js"></script>
     <link href="/wp-content/plugins/webfootprint-stock-manager-old/assets/css/styles.css" rel="stylesheet">
    ';
}
Woocommerce Empty Cart
$woocommerce->cart->empty_cart();
Insert into the Database
INSERT INTO `flowerhhsa_wpbf4c`.`wp_postmeta` (`meta_id`, `post_id`, `meta_key`, `meta_value`) VALUES ('', '', 'xxxdate20180601', 1000);

Just match the fields. eg: (‘meta_id’,`post_id`) values (‘meta_id’,`post_id`)
In this case the meta_id and post_id are left blank as they get auto set in the database

Delete rows from the Database Where meta_key equals ‘meta_key_name’
DELETE FROM `flowerhhsa_wpbf4c`.`wp_postmeta` WHERE `meta_key`='xxxdate20180601';

Search

Your Favourite Posts

  • Your favorites will be here.

Latest Content

© Garth Baker 2024 All rights reserved.

Pin It on Pinterest

Share This