This file contains hidden or 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 | |
| clear | |
| # Remove/Uninstall process | |
| echo "WordPress Installation Starts :)" | |
| if [[ $1 == "remove" ]]; then | |
| | |
| # Grab the project name | |
| if [[ -z $2 ]]; then | |
| echo "WP Project to remove: " |
This file contains hidden or 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 | |
| //* Do NOT include the opening php tag shown above. Copy the code shown below into functions.php | |
| /** | |
| * Manage WooCommerce styles and scripts. | |
| */ | |
| function grd_woocommerce_script_cleaner() { | |
| // Remove the generator tag | |
| remove_action( 'wp_head', array( $GLOBALS['woocommerce'], 'generator' ) ); |
This file contains hidden or 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 | |
| //Exit if accessed directly | |
| if ( ! defined( 'ABSPATH' ) ) { | |
| exit; | |
| } | |
| function dwwp_register_post_type() { | |
| $singular = 'Job'; | |
| $plural = 'Jobs'; | |
| $slug = str_replace( ' ', '_', strtolower( $singular ) ); |
This file contains hidden or 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 | |
| session_start(); | |
| require_once __DIR__ . '/src/Facebook/autoload.php'; | |
| $fb = new Facebook\Facebook([ | |
| 'app_id' => 'APP_ID', | |
| 'app_secret' => 'APP_SECRET', | |
| 'default_graph_version' => 'v2.5', | |
| ]); | |
| $helper = $fb->getRedirectLoginHelper(); | |
| $permissions = ['user_birthday', 'user_location', 'user_website']; // optional |
This file contains hidden or 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 | |
| $_fp = fopen("php://stdin", "r"); | |
| while($string = fgets($_fp)){ | |
| $string = strtolower($string); | |
| $string = str_replace(' ', '', $string); | |
| $string = str_split($string); | |
| $abc = range('a', 'z'); | |
| $gap = array_diff($abc, $string); |
NewerOlder