Filter links + woocommerce_enable_admin_help_tab
This commit is contained in:
parent
05d9c0e045
commit
22eaf33bfe
|
@ -151,7 +151,7 @@ class WC_Admin_Welcome {
|
|||
|
||||
<p class="woocommerce-actions">
|
||||
<a href="<?php echo admin_url('admin.php?page=wc-settings'); ?>" class="button button-primary"><?php _e( 'Settings', 'woocommerce' ); ?></a>
|
||||
<a class="docs button button-primary" href="http://docs.woothemes.com/documentation/plugins/woocommerce/"><?php _e( 'Docs', 'woocommerce' ); ?></a>
|
||||
<a class="docs button button-primary" href="<?php echo esc_url( apply_filters( 'woocommerce_docs_url', 'http://docs.woothemes.com/documentation/plugins/woocommerce/', 'woocommerce' ) ); ?>"><?php _e( 'Docs', 'woocommerce' ); ?></a>
|
||||
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://www.woothemes.com/woocommerce/" data-text="A open-source (free) #ecommerce plugin for #WordPress that helps you sell anything. Beautifully." data-via="WooThemes" data-size="large" data-hashtags="WooCommerce">Tweet</a>
|
||||
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
|
||||
</p>
|
||||
|
|
|
@ -38,7 +38,6 @@ class WC_Admin {
|
|||
include( 'wc-meta-box-functions.php' );
|
||||
|
||||
// Classes
|
||||
include( 'class-wc-admin-help.php' );
|
||||
include( 'class-wc-admin-menus.php' );
|
||||
include( 'class-wc-admin-welcome.php' );
|
||||
include( 'class-wc-admin-notices.php' );
|
||||
|
@ -48,6 +47,10 @@ class WC_Admin {
|
|||
include( 'class-wc-admin-taxonomies.php' );
|
||||
include( 'class-wc-admin-editor.php' );
|
||||
|
||||
// Help
|
||||
if ( apply_filters( 'woocommerce_enable_admin_help_tab', true ) )
|
||||
include( 'class-wc-admin-help.php' );
|
||||
|
||||
// Importers
|
||||
if ( defined( 'WP_LOAD_IMPORTERS' ) )
|
||||
include( 'class-wc-admin-importers.php' );
|
||||
|
|
|
@ -743,7 +743,7 @@ class WC_Meta_Box_Product_Data {
|
|||
<div class="squeezer">
|
||||
<h4><?php _e( 'Before adding variations, add and save some attributes on the <strong>Attributes</strong> tab.', 'woocommerce' ); ?></h4>
|
||||
|
||||
<p class="submit"><a class="button-primary" href="http://docs.woothemes.com/document/product-variations/" target="_blank"><?php _e( 'Learn more', 'woocommerce' ); ?></a></p>
|
||||
<p class="submit"><a class="button-primary" href="<?php echo esc_url( apply_filters( 'woocommerce_docs_url', 'http://docs.woothemes.com/document/product-variations', 'product-variations' ) ); ?>" target="_blank"><?php _e( 'Learn more', 'woocommerce' ); ?></a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -4,6 +4,6 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|||
<div id="message" class="updated woocommerce-message wc-connect">
|
||||
<div class="squeezer">
|
||||
<h4><?php _e( '<strong>Your theme does not declare WooCommerce support</strong> – if you encounter layout issues please read our integration guide or choose a WooCommerce theme :)', 'woocommerce' ); ?></h4>
|
||||
<p class="submit"><a href="http://docs.woothemes.com/document/third-party-custom-theme-compatibility/" class="button-primary"><?php _e( 'Theme Integration Guide', 'woocommerce' ); ?></a> <a class="skip button-primary" href="<?php echo add_query_arg( 'hide_woocommerce_theme_support_check', 'true' ); ?>"><?php _e( 'Hide this notice', 'woocommerce' ); ?></a></p>
|
||||
<p class="submit"><a href="<?php echo esc_url( apply_filters( 'woocommerce_docs_url', 'http://docs.woothemes.com/document/third-party-custom-theme-compatibility/', 'theme-compatibility' ) ); ?>" class="button-primary"><?php _e( 'Theme Integration Guide', 'woocommerce' ); ?></a> <a class="skip button-primary" href="<?php echo esc_url( add_query_arg( 'hide_woocommerce_theme_support_check', 'true' ) ); ?>"><?php _e( 'Hide this notice', 'woocommerce' ); ?></a></p>
|
||||
</div>
|
||||
</div>
|
|
@ -178,8 +178,8 @@ final class WooCommerce {
|
|||
public function action_links( $links ) {
|
||||
return array_merge( array(
|
||||
'<a href="' . admin_url( 'admin.php?page=wc-settings' ) . '">' . __( 'Settings', 'woocommerce' ) . '</a>',
|
||||
'<a href="http://docs.woothemes.com/documentation/plugins/woocommerce/">' . __( 'Docs', 'woocommerce' ) . '</a>',
|
||||
'<a href="http://support.woothemes.com/">' . __( 'Premium Support', 'woocommerce' ) . '</a>',
|
||||
'<a href="' . esc_url( apply_filters( 'woocommerce_docs_url', 'http://docs.woothemes.com/documentation/plugins/woocommerce/', 'woocommerce' ) ) . '">' . __( 'Docs', 'woocommerce' ) . '</a>',
|
||||
'<a href="' . esc_url( apply_filters( 'woocommerce_support_url', 'http://support.woothemes.com/' ) ) . '">' . __( 'Premium Support', 'woocommerce' ) . '</a>',
|
||||
), $links );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue