- Enable Twitter cards:
/wp-admin/admin.php?page=wpseo_social#top#twitterboxEnable and Summary with Large Image - Change Title separator to
|
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 | |
| /** | |
| * Enable Auto Updates for Everything | |
| * https://gist.github.com/salcode/b60df55598c21c5970600a56715a2b1c | |
| * | |
| * Please put this file in the `mu-plugins` directory. | |
| * | |
| * curl -O https://gist.githubusercontent.com/salcode/b60df55598c21c5970600a56715a2b1c/raw/wp-auto-update-everything.php | |
| */ |
WordCamp Lehigh Valley Website
August 19, 2017
https://twitter.com/felafel/status/906162644125659136
@salcode Met you at WC Lancaster. Looking to embed existing php code (not a snippet) in a WP page. Tried a few plugins. Suggestion?
Displaying PHP output on a WordPress page can vary depending on where you want to display the output.
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 | |
| /** | |
| * Modify theme to support Beaver Builder better. | |
| * | |
| * - Set the theme layout to full width. | |
| * - Remove the `site-inner` markup. | |
| * - Remove the `content-sidebar-wrap` markup. | |
| * - Remove the entry header and page/ post title. | |
| * | |
| * @package Generico\Core |
I hereby claim:
- I am salcode on github.
- I am salcode (https://keybase.io/salcode) on keybase.
- I have a public key ASBSYDWGe_itOiSiI6BnWuSnvvlLjok8KPK_E5OrUDofnAo
To claim this, I am signing this object:
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 | |
| /** | |
| * Plugin Name: WP CLI Test Stop Emails | |
| * Plugin URI: https://github.com/salcode/stop-emails/issues/15 | |
| * Description: Test plugin for <a href="https://github.com/salcode/stop-emails/issues/15">Issue 15</a> | |
| * Author: Sal Ferrarello | |
| * Author URI: https://salferrarello.com/ | |
| * Text Domain: wp-cli-test-stop-emails | |
| * Domain Path: /languages | |
| * Version: 0.1.0 |
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
| # EditorConfig helps keep your project formatting consistent. | |
| # See https://EditorConfig.org | |
| # | |
| # This is a modified version of the WordPress coding standards. | |
| # | |
| # Author: Sal Ferrarello (@salcode) | |
| # https://salferrarello.com/wordpress-editorconfig/ | |
| # | |
| # You can download this file directly | |
| # to your project from the command-line with |
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
| # EditorConfig helps keep your project formatting consistent. | |
| # See https://EditorConfig.org | |
| # | |
| # PHP PSR-2 Coding Standards | |
| # http://www.php-fig.org/psr/psr-2/ | |
| # | |
| # Author: Sal Ferrarello (@salcode) | |
| # | |
| # You can download this file directly | |
| # to your project from the command-line with |
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 | |
| class PostStatus | |
| { | |
| const PRIVATE = 'private'; | |
| const DRAFT = 'draft'; | |
| const PUBLISHED = 'published'; | |
| const TRASHED = 'trash'; | |
| /** |