Skip to content

Instantly share code, notes, and snippets.

@filipvanreeth
Last active November 29, 2016 12:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save filipvanreeth/e89f9a11635b4012beee7169c4634b00 to your computer and use it in GitHub Desktop.
Save filipvanreeth/e89f9a11635b4012beee7169c4634b00 to your computer and use it in GitHub Desktop.
WooCommerce - Get WooCommerce Page IDs
get_option( 'woocommerce_shop_page_id' );
get_option( 'woocommerce_cart_page_id' );
get_option( 'woocommerce_checkout_page_id' );
get_option( 'woocommerce_pay_page_id' );
get_option( 'woocommerce_thanks_page_id' );
get_option( 'woocommerce_myaccount_page_id' );
get_option( 'woocommerce_edit_address_page_id' );
get_option( 'woocommerce_view_order_page_id' );
get_option( 'woocommerce_terms_page_id' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment