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
| // http://stackoverflow.com/questions/10152894/php-replacing-special-characters-like-a-a-e-e?answertab=votes#tab-top | |
| // PHP.net User notes | |
| <?php | |
| $string = "ʿABBĀSĀBĀD"; | |
| echo iconv('UTF-8', 'ISO-8859-1//TRANSLIT', $string); | |
| // output: [nothing, and you get a notice] | |
| echo iconv('UTF-8', 'ISO-8859-1//IGNORE', $string); |
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 | |
| // index WooCommerce product_variation SKUs with the parent post | |
| function my_searchwp_index_woocommerce_variation_skus( $extra_meta, $post_being_indexed ) { | |
| // we only care about WooCommerce Products | |
| if ( 'product' !== get_post_type( $post_being_indexed ) ) { | |
| return $extra_meta; | |
| } |
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: PayPal Sandbox IPN Tester | |
| * Description: Pings the IPN endpoint to see if your server can connect. Just head to <a href="/?ipn-test=1">yoursite.com/?ipn-test=1</a> whilst logged in as admin. | |
| * Version: 1.0.0 | |
| * Author: WooThemes | |
| * Requires at least: 4.1 | |
| * Tested up to: 4.3 | |
| */ | |
| if ( ! defined( 'ABSPATH' ) ) { |
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 | |
| /** | |
| * Wordpress RSS Image Enclosure | |
| * | |
| * Wrap ONLY the featured image inside 'enclosure' tags. | |
| * | |
| * @author Davey Jacobson | |
| * @link https://www.daveyjake.dev | |
| * | |
| * @package DJ_Dev |
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 | |
| /** | |
| * Gravity Forms Bootstrap Styles | |
| * | |
| * Applies bootstrap classes to various common field types. | |
| * Requires Bootstrap to be in use by the theme. | |
| * | |
| * Using this function allows use of Gravity Forms default CSS | |
| * in conjuction with Bootstrap (benefit for fields types such as Address). | |
| * |
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
| .btn > .caret, .gform_button > .caret, | |
| .dropup > .btn > .caret, | |
| .dropup > .gform_button > .caret { | |
| border-top-color: #000 !important; | |
| } | |
| .gform_fields { | |
| padding-left: 0; | |
| list-style: none; | |
| margin-left: -15px; |
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
| /* globals FWP */ | |
| /** | |
| * JavaScript for FacetWP Infinite Scroll | |
| */ | |
| (function( $ ) { | |
| 'use-strict'; | |
| var throttleTimer = null; | |
| var throttleDelay = 100; |
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 | |
| /********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/ | |
| /* Change size for Yoast SEO OpenGraph image for all content | |
| * Credit: Yoast Development team | |
| * Last Tested: May 19 2020 using Yoast SEO 14.1 on WordPress 5.4.1 | |
| * Accepts WordPress reserved image size names: 'thumb', 'thumbnail', 'medium', 'large', 'post-thumbnail' | |
| * Accepts custom image size names: https://developer.wordpress.org/reference/functions/add_image_size/ | |
| */ | |
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
| /** | |
| * Remove hentry from post_class | |
| * This is important to not get schema errors | |
| */ | |
| function visceral_remove_hentry_class( $classes ) { | |
| $classes = array_diff( $classes, array( 'hentry' ) ); | |
| return $classes; | |
| } | |
| add_filter( 'post_class', 'visceral_remove_hentry_class' ); |