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
| add_action( 'gform_after_create_post', 'gf_add_to_media_library', 10, 3 ); | |
| /** | |
| * Save file upload fields under custom post field to the library | |
| * | |
| * @param $post_id The post identifier | |
| * @param $entry The entry | |
| * @param $form The form | |
| */ |
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
| # Create directory for new site | |
| cd ~/Sites | |
| mkdir {query} | |
| cd {query} | |
| # Download latest version of WordPress | |
| wp core download | |
| # Setup wp-config file with WP_DEBUG enabled | |
| wp core config --dbname={query} --dbuser=root --dbpass=root --dbprefix={query}wp_ --extra-php <<PHP |