PluginProbe
Faktur Pro for WooCommerce / 3.1.8
Faktur Pro for WooCommerce v3.1.8
0.9.1 0.9.11 0.9.12 0.9.13 0.9.14 0.9.2 0.9.3 0.9.4 0.9.5 0.9.6 0.9.7 0.9.8 0.9.9 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 All 159 releases
woorechnung / woorechnung.php

woorechnung.php in Faktur Pro for WooCommerce 3.1.8, at woorechnung.php

75 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Plugin Name: Faktur Pro
5 * Plugin URI: https://www.faktur.pro/
6 * Description: Adds invoice creation functionality to WooCommerce.
7 * Version: 3.1.8
8 * Stable tag: 3.1.8
9 * Author: Zweischneider GmbH & Co. KG
10 * Author URI: https://www.zweischneider.de
11 *
12 * Text Domain: fakturpro
13 * Domain Path: /languages
14 *
15 * Requires at least: 3.0.0
16 * Tested up to: 6.8.1
17 * Tested PHP up to: 8.3
18 * WC requires at least: 3.0.0
19 * WC tested up to: 9.8.5
20 *
21 * @package FakturPro
22 * @category Core
23 * @author ZWEISCHNEIDER
24 */
25
26 // Exit if accessed directly
27 if ( !defined ( 'ABSPATH' ) ) {
28 exit;
29 }
30
31 add_action( 'before_woocommerce_init', function() {
32 if ( class_exists( 'Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) {
33 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
34 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'product_block_editor', __FILE__, true );
35 }
36 } );
37
38 // Get the name of this file in filsystem
39 // Get the root path of this plugin in filesystem
40 // Get the base URL of this plugin on the server
41 $plugin_file = __FILE__;
42 $plugin_path = plugin_dir_path( $plugin_file );
43 $plugin_url = plugins_url( '', $plugin_file );
44
45 $custom_config_path = $plugin_path . 'config-path.php';
46 $plugin_config = $plugin_path . 'config/config.php';
47
48 // Require all classes the plugin consists of
49 // Include the configuration file for the plugin
50 require_once (
51 file_exists( $custom_config_path )
52 && !empty( include( $custom_config_path ) )
53 && file_exists( include( $custom_config_path ) )
54 ? include( $custom_config_path )
55 : $plugin_config
56 );
57 require_once ( $plugin_path . 'includes.php' );
58
59 // Create a new instance of the plugin class
60 // Run the plugin and register all hooks within WordPress
61 $plugin = new FP_Plugin( $plugin_file, $plugin_path, $plugin_url );
62 $plugin->run_plugin();
63
64 // Make the plugin instance global
65 $GLOBALS['fakturpro'] = $plugin;
66
67 /**
68 * Faktur pro global plugin function.
69 *
70 * @return FP_Plugin
71 */
72 function fakturpro() {
73 return $GLOBALS['fakturpro'];
74 }
75