' . $rocket_icons . '';
return sprintf(
__( 'If you like All In One For WooCommerce please leave us a %s rating. Thank you, we couldn\'t have done it without you!', 'all-in-one-wc' ),
$rating_link
);
}
}
return $footer_text;
}
/**
* Add menu item
*/
function aiow_menu() {
add_submenu_page(
'woocommerce',
__( 'All In One For WooCommerce', 'all-in-one-wc' ),
__( 'All In One For WooCommerce', 'all-in-one-wc' ) ,
( 'yes' === aiow_option( 'aiow_' . 'admin_tools' . '_enabled', 'no' ) && 'yes' === aiow_option( 'aiow_admin_tools_show_menus_to_admin_only', 'no' ) ? 'manage_options' : 'manage_woocommerce' ),
'admin.php?page=wc-settings&tab=all_in_one_wc'
);
}
/**
* Show action links on the plugin screen
*
* @param mixed $links
* @return array
*/
function action_links( $links ) {
$aiow_custom_links = array(
'' . __( 'Settings', 'woocommerce' ) . ''
);
return array_merge( $aiow_custom_links, $links );
}
/**
* Add Jetpack settings tab to WooCommerce settings.
*
* @param array $settings Settings.
* @return array
*/
function add_aiow_settings_tab( $settings ) {
$_settings = new Settings\Settings_Panel();
$_settings->add_module_statuses( AIOW()->module_statuses );
$settings[] = $_settings;
return $settings;
}
}
endif;