lightspeeddevelopment /
lsx-sharing
| 1 | <?php |
||||
| 2 | /* |
||||
| 3 | * Plugin Name: LSX Sharing |
||||
| 4 | * Plugin URI: https://www.lsdev.biz/product/lsx-sharing/ |
||||
| 5 | * Description: The LSX Sharing extension add social share icons for LSX Theme. |
||||
| 6 | * Version: 1.2.0 |
||||
| 7 | * Author: LightSpeed |
||||
| 8 | * Author URI: https://www.lsdev.biz/ |
||||
| 9 | * License: GPL3 |
||||
| 10 | * License URI: https://www.gnu.org/licenses/gpl-3.0.html |
||||
| 11 | * Text Domain: lsx-sharing |
||||
| 12 | * Domain Path: /languages |
||||
| 13 | */ |
||||
| 14 | |||||
| 15 | // If this file is called directly, abort. |
||||
| 16 | if ( ! defined( 'WPINC' ) ) { |
||||
| 17 | die; |
||||
| 18 | } |
||||
| 19 | |||||
| 20 | define( 'LSX_SHARING_PATH', plugin_dir_path( __FILE__ ) ); |
||||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||||
| 21 | define( 'LSX_SHARING_CORE', __FILE__ ); |
||||
| 22 | define( 'LSX_SHARING_URL', plugin_dir_url( __FILE__ ) ); |
||||
|
0 ignored issues
–
show
The function
plugin_dir_url was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 23 | define( 'LSX_SHARING_VER', '1.2.0' ); |
||||
| 24 | |||||
| 25 | /* ======================= Below is the Plugin Class init ========================= */ |
||||
| 26 | require_once LSX_SHARING_PATH . '/classes/class-sharing.php'; |
||||
| 27 | /** |
||||
| 28 | * Returns and instance of the LSX Sharing plugin. |
||||
| 29 | * |
||||
| 30 | * @return object \lsx\sharing\Sharing(); |
||||
| 31 | */ |
||||
| 32 | function lsx_sharing() { |
||||
| 33 | $lsx_sharing = \lsx\sharing\Sharing::get_instance(); |
||||
| 34 | return $lsx_sharing; |
||||
| 35 | } |
||||
| 36 | lsx_sharing(); |
||||
| 37 |