Skip to content

Instantly share code, notes, and snippets.

Avatar
🥑
WordPress'in & React'in

Pierre Saikali psaikali

🥑
WordPress'in & React'in
View GitHub Profile
@hofmannsven
hofmannsven / README.md
Last active Jul 16, 2022
Storing WordPress files and database with WP-CLI on the server.
View README.md

WordPress Backups with WP-CLI

@carlalexander
carlalexander / AdminPage.php
Last active Aug 8, 2021
WordPress and the single responsibility principle
View AdminPage.php
<?php
namespace WPMemeShortcode;
/**
* The WordPress Meme Shortcode admin page.
*
* @author Carl Alexander
*/
class AdminPage
@Adirael
Adirael / fix-wordpress-permissions.sh
Created Aug 17, 2012
Fix wordpress file permissions
View fix-wordpress-permissions.sh
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
#
WP_OWNER=www-data # <-- wordpress owner
WP_GROUP=www-data # <-- wordpress group
WP_ROOT=$1 # <-- wordpress root directory