'Settings', ), $links ); } /** * Show row meta on the plugin screen. * * @param mixed $links Plugin Row Meta. * @param mixed $file Plugin Base file. * * @return array */ public static function plugin_row_meta( $links, $file ) { if ( plugin_basename( __FILE__ ) === $file ) { $row_meta = array( 'docs' => 'Docs', 'create_app' => 'Create App', ); return array_merge( $links, $row_meta ); } return (array) $links; } /** * Returns error notice if WooCommerce is not activates/installed */ public static function appmaker_woocommerce_error_notice() { if ( ! is_plugin_active( 'woocommerce/woocommerce.php' ) ) { add_action( 'admin_notices', array( 'APPMAKER_WC', 'show_admin_message' ) ); } } /** * Returns WooCommerce Notice */ public static function show_admin_message() { $class = 'notice notice-error'; $message = __( 'Appmaker plugin requires WooCommerce installed and activate to work properly.', 'appmaker-woocommerce-mobile-app-manager' ); printf( '
%2$s