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
| /** | |
| * App style: the base shared by 19h47's small apps (Tumblr, Messenger, SMS, Tweets, Typewriter, Library, Letterhead, Overlay, | |
| * DMGR1, Pocket Science-fiction). | |
| * | |
| * Copy this file into an app, with the revision of the gist it comes from in this comment, | |
| * and add the app's own styles after it. An update is a new copy, app by app. | |
| * | |
| * A golden-ratio scale (φ), colors with light-dark() and color-mix(). Every size is on the scale: its steps for space, | |
| * half steps (√φ) between them for text; a padding in em follows its text. | |
| * A component carries no margin of its own: the place that holds it spaces it, with a gap or a margin. |
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 Remove Actions | |
| * Plugin URI: https://gist.github.com/19h47/4b8d03bb0cd5942390830c3bc49422fe | |
| * Description: Mostly involved with cleaning up default WordPress cruft.. | |
| * Version: 0.0.0 | |
| * Author: Jérémy Levron | |
| * Author URI: https://19h47.fr | |
| * | |
| * @package 19h47/wp-remove-actions |
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 Get YouTube ID | |
| * Plugin URI: https://gist.github.com/19h47/f7c768f1541f191cddf993a68d334415 | |
| * Description: WordPress insert image. | |
| * Version: 0.0.0 | |
| * Author: Jérémy Levron | |
| * Author URI: https://19h47.fr | |
| */ |
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 Get Theme | |
| * Plugin URI: https://gist.github.com/19h47/806c10bd977aa63929dd14e2035e9d28 | |
| * Description: Get various information from current theme thanks to WP_Theme object. | |
| * Version: 0.0.3 | |
| * Author: Jérémy Levron | |
| * Author URI: https://19h47.fr | |
| * | |
| * @package 19h47/wp-get-theme |
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 Sanitize Title With Underscores | |
| * Plugin URI: https://gist.github.com/19h47/c54fd0e7a5c6fbc99a6087e7606054c0 | |
| * Description: Simple wrapper around sanitize_title_with_dashes to replacing dashes with underscores. | |
| * Version: 0.0.1 | |
| * Author: Jérémy Levron | |
| * Author URI: https://19h47.fr | |
| * | |
| * @package 19h47/wp-sanitize-title-with-underscore |
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 Sticky Custom Post Types | |
| * Plugin URI: https://gist.github.com/19h47/c54fd0e7a5c6fbc99a6087e7606054c0 | |
| * Description: WP Sticky Custom Post Types is a plugin that enables support for sticky custom post types. | |
| * Version: 0.0.1 | |
| * Author: Jérémy Levron | |
| * Author URI: https://19h47.fr | |
| * | |
| * @package WordPress |
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 Insert Image | |
| * Plugin URI: https://gist.github.com/19h47/f85ab2722676b1f8e2f86cb2451792b6 | |
| * Description: WordPress insert image. | |
| * Version: 0.0.0 | |
| * Author: Jérémy Levron | |
| * Author URI: https://19h47.fr | |
| */ | |
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 Form Controls | |
| * Plugin URI: https://gist.github.com/19h47/5bc7dc96204d7290ce781a54756e0a7b | |
| * Description: WP Form Controls is a set of function that helps and allows to generate form controls in WordPress. | |
| * Version: 3.1.6 | |
| * Author: Jérémy Levron | |
| * Author URI: https://19h47.fr | |
| * | |
| * @package 19h47/wp-form-controls |
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: Billing phone exists | |
| * Plugin URI: https://gist.github.com/19h47/2149242aced9856d0b15b24fe14de2ed | |
| * Description: A simple function to determines whether the given billing phone exists. | |
| * Version: 1.0.0 | |
| * Author: Jérémy Levron | |
| * Author URI: https://19h47.fr | |
| */ |
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 // phpcs:ignore | |
| add_action( 'pre_get_posts', 'exclude_posts_from_feed', 10, 1 ); | |
| /** | |
| * Exclude posts from feed | |
| * | |
| * Exclude posts from feed based on a boolean metadata (maybe set by an ACF | |
| * field): exclude_from_feed | |
| * |
NewerOlder