This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Mo_Oauth_Widget extends WP_Widget { | |
public function __construct() { | |
update_option( 'host_name', 'https://login.xecurify.com' ); | |
add_action( 'wp_enqueue_scripts', array( $this, 'register_plugin_styles' ) ); | |
add_action( 'init', array( $this, 'mo_oauth_start_session' ) ); | |
add_action( 'wp_logout', array( $this, 'mo_oauth_end_session' ) ); | |
add_action( 'login_form', array( $this, 'mo_oauth_wplogin_form_button' ) ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$protocol = (!empty( $_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://"; | |
$domainName = $_SERVER['HTTP_HOST'] . '/'; | |
$home = $protocol . $domainName; | |
define( 'WP_HOME', $home ); | |
define( 'WP_SITEURL', $home ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
alias wp=/e/srv/wp-cli/wp.bat | |
PATH=$PATH:wp; | |
clear | |
echo "Installing WP Importer Plugin" | |
wp plugin install wordpress-importer --activate | |
curl -O https://raw.githubusercontent.com/WPTT/theme-unit-test/master/themeunittestdata.wordpress.xml | |
wp import themeunittestdata.wordpress.xml --authors=create |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
alias wp=/e/srv/wp-cli/wp.bat | |
PATH=$PATH:wp; | |
clear | |
echo "Welcome to WordPress auto installer!" | |
echo "Enter Site Title (question 1/5 ):" | |
read PROJECT_NAME |