EC CUBEとWordPressを連携させる - Restoration/WP-BoilerPlate GitHub Wiki
<?php
require_once CLASS_REALDIR . 'pages/LC_Page.php';
require_once('Your wordpress instration path' . '/wp-load.php' );
class LC_Page_Ex extends LC_Page
{
}
<?php
/**
* Load the correct database class file.
*
* This function is used to load the database class file either at runtime or by
* wp-admin/setup-config.php. We must globalize $wpdb to ensure that it is
* defined globally by the inline code in wp-db.php.
*
* @since 2.5.0
* @global $wpdb WordPress Database Object
*/
function require_wp_db() {
global $wpdb;
require_once( ABSPATH . WPINC . '/wp-db.php' );
if ( file_exists( WP_CONTENT_DIR . '/db.php' ) )
require_once( WP_CONTENT_DIR . '/db.php' );
if ( isset( $wpdb ) )
return;
$wpdb = new wpdb( WP_DB_USER, WP_DB_PASSWORD, WP_DB_NAME, WP_DB_HOST );
}