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: Random Post on Refresh – Polylang Integration | |
* Plugin URI: https://gist.github.com/wpscholar/215695a02a495194d7f7f8da2f46d519 | |
* Description: Integrates the Random Post on Refresh plugin with Polylang to restrict queries to the current language if none is explicitly provided. | |
* Version: 1.0 | |
* Author: Micah Wood | |
* Author URI: https://wpscholar.com | |
* License: GPLv2 | |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html |
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
// See https://developer.wordpress.org/block-editor/reference-guides/packages/packages-element/#createinterpolateelement | |
import { __ } from '@wordpress/i18n'; | |
import { createInterpolateElement } from '@wordpress/element'; | |
function MyComponent() { | |
return createInterpolateElement( | |
__( 'Please <Link>visit our site</Link> for more info.', 'text-domain' ), | |
{ | |
Link: <a href="https://example.com" />, |
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
<rule ref="WordPress.WP.I18n"> | |
<properties> | |
<property name="text_domain" type="array" value="newfold-module-performance" /> | |
</properties> | |
</rule> |
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 | |
use WP_Query; | |
/** | |
* Class OrderPostsByTaxonomy | |
* | |
* @link https://scribu.net/wordpress/sortable-taxonomy-columns.html | |
* | |
* Handles the ordering of posts based on their associated taxonomy. |
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: Disable RankMath Sitemap Caching | |
*/ | |
add_filter( 'rank_math/sitemap/enable_caching', '__return_false'); |
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_action( | |
'wp_enqueue_scripts', | |
function() { | |
... | |
} | |
); |
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 Featured Image to RSS Feed | |
* | |
* @package AddFeaturedImageToRssFeed | |
* @author Micah Wood | |
* @copyright Copyright 2023 by Micah Wood - All rights reserved. | |
* @license GPL2.0-or-later | |
* | |
* @wordpress-plugin |
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 | |
/** | |
* WooCommerce Add Fee to the Checkout Page | |
* | |
* @package WooCommerceAddFeeToCheckout | |
* @author Micah Wood | |
* @copyright Copyright 2023 by Micah Wood - All rights reserved. | |
* @license GPL2.0-or-later | |
* | |
* @wordpress-plugin |
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 | |
/** | |
* University Customer Role Assignment | |
* | |
* @package UniversityCustomerRoleAssignment | |
* @author Micah Wood | |
* @copyright Copyright 2023 by Micah Wood - All rights reserved. | |
* @license GPL2.0-or-later | |
* |
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
describe("Connect.tech Demo", () => { | |
it("tests Connect.tech Demo", () => { | |
cy.viewport(952, 976); | |
cy.visit("https://www.google.com/"); | |
cy.get("body > div.L3eUgb > div.o3j99.ikrT4e.om7nvf > form > div:nth-child(1) > div.A8SBwf > div.RNNXgb > div > div.a4bIc > input").click(); | |
cy.get("body > div.L3eUgb > div.o3j99.ikrT4e.om7nvf > form > div:nth-child(1) > div.A8SBwf > div.RNNXgb > div > div.a4bIc > input").type("seo"); |
NewerOlder