Skip to content

Instantly share code, notes, and snippets.

View 19h47's full-sized avatar
🔥
This guy is on fire

Jérémy Levron 19h47

🔥
This guy is on fire
View GitHub Profile
<?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
@19h47
19h47 / wp-get-youtube-id.php
Last active May 2, 2023 08:07
WP Get YouTube ID
<?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
*/
@19h47
19h47 / wp-get-theme.php
Last active May 5, 2023 15:41
WP Get Theme
<?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
<?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
@19h47
19h47 / wp-sticky-custom-post-types.php
Last active December 6, 2022 09:01
WP Sticky Custom Post Types
<?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
@19h47
19h47 / wp-insert-image.php
Last active April 19, 2023 09:38
WP Insert Image
<?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
*/
@19h47
19h47 / wp-form-controls.php
Last active December 6, 2022 09:04
WP Form Controls
<?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
@19h47
19h47 / billing-phone-exists.php
Last active December 6, 2022 09:08
Determines whether the given billing phone exists.
<?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
*/
@19h47
19h47 / exclude-posts-from-feed.php
Last active May 17, 2022 10:42
Exclude posts from WordPress feed
<?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
*
<?php
/**
* Settings class
*/
/**
* Class Settings
*/
class Settings {
/**