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 WordPress_Custom_Status { | |
| /** | |
| * Post Types for this status | |
| * @var array | |
| */ | |
| protected $post_type = array(); |
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 | |
| add_filter( 'rest_prepare_post', __NAMESPACE__ . '\add_featured_image_data_to_rest', 70, 3 ); | |
| /** | |
| * Format the possible featured image metadata in the REST API response. | |
| * | |
| * @param WP_REST_Response $response The response object. | |
| * @param WP_Post $item The original post object. | |
| * @param WP_REST_Request $request The request used to generate the response. | |
| * |
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 | |
| /** | |
| * ITS Related Links | |
| * | |
| * The WordPress Widget Boilerplate is an organized, maintainable boilerplate for building widgets using WordPress best practices. | |
| * | |
| */ | |
| class ITS_Contact_Box extends WP_Widget { |
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 | |
| /** | |
| * Devin CSV Export | |
| * | |
| * Contains our export processing | |
| */ | |
| /* | |
| Copyright 2015 Reaktiv Studios | |
| This program is free software; you can redistribute it and/or modify |
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
| https://gist.github.com/paulund/6687336 | |
| https://wpdatatables.com/crud-system-in-wordpress/ | |
| https://www.davidangulo.xyz/how-to-create-crud-operations-plugin-in-wordpress/ | |
| https://wpdataaccess.com/2020/04/08/how-to-use-wp-data-access-classes-in-your-own-php-code/ | |
| https://paulund.co.uk/crud-queries-for-wordpress-custom-tables |
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
| { | |
| "basics": { | |
| "name": "Brandon Hubbard", | |
| "label": "WordPress Developer", | |
| "picture": "http://www.gravatar.com/avatar/3596404cbc9ffb7d4f48524e08340d86.png", | |
| "email": "[email protected]", | |
| "phone": "(818) 297-4175", | |
| "website": "https://brandonhubbard.com", | |
| "summary": "Web Developer Manager at Snap One", | |
| "location": { |
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
| /** | |
| * Dequeues Elementor scripts and styles for FunnelKit Builder pages | |
| * | |
| * This function prevents loading unnecessary Elementor assets on FunnelKit Builder pages | |
| * that are using canvas or boxed templates but not built with Elementor. This helps | |
| * improve page load performance. | |
| * | |
| * The function checks: | |
| * 1. If Elementor locations exist | |
| * 2. If current post exists and is valid |
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: Google Structured Data for WooCommerce | |
| Plugin URI: https://www.damiencarbery.com/2019/04/google-structured-data-for-woocommerce/ | |
| Description: Add Google Structured Data to WooCommerce products. Asked in: https://www.facebook.com/groups/genesiswp/permalink/2358845040833346/ | |
| Author: Damien Carbery | |
| Version: 0.1 | |
| */ | |
| add_action( 'woocommerce_before_single_product_summary', 'dcwd_add_wc_structured_data' ); |
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 | |
| function fix_content_input( $content, $vid ) { | |
| $post = get_post( $vid['post_id'] ); | |
| if ( !empty( $post->post_excerpt ) ) { | |
| $content = "\n" . 'http://youtube.com/v/'. $post->post_excerpt . "\n" . $content; | |
| } | |
| return $content; | |
| } | |
| add_filter( 'wpseo_video_index_content', 'fix_content_input', 10, 2 ); |
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 | |
| /** Replace the standard loop with our custom Locations loop */ | |
| remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
| add_action( 'genesis_loop', 'wpseo_locations_archive_loop' ); | |
| function wpseo_locations_archive_loop() { | |
| echo '<h1>Locations</h1>'; | |
| echo '<div class="entry-content"><p>Your intro text here.</p></div>'; | |
| $args = array( |