IT Nursery
So I have the following in an include in my theme file: include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if ( is_plugin_active( WP_PLUGIN_DIR . '/woocommerce/woocommerce.php' ) ) { $shop_id = woocommerce_get_page_id(...
  • April 17, 2022
  • 0 Comments
IT Nursery
While I’ve typically used include or require on their own to save long term code maintenance I’ve started to use get_template_part and locate_template as using built in WordPress stuff...
  • April 5, 2022
  • 0 Comments