set_basename( false, __FILE__ ); } return; } define( 'YANGRA_CONDITIONAL_VERSION', '1.0.0' ); define( 'YANGRA_CONDITIONAL_FILE', __FILE__ ); define( 'YANGRA_CONDITIONAL_PATH', plugin_dir_path( __FILE__ ) ); define( 'YANGRA_CONDITIONAL_URL', plugin_dir_url( __FILE__ ) ); if ( ! file_exists( YANGRA_CONDITIONAL_PATH . 'vendor/autoload.php' ) ) { add_action( 'admin_notices', static function () { echo '
'; esc_html_e( 'Yangra Conditional is missing its dependencies. Please run "composer install" in the plugin folder.', 'yangra-conditional' ); echo '