This file contains 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 | |
/** | |
* | |
* Ajax Search module | |
* | |
* @package CommerceKit | |
* @subpackage Shoptimizer | |
*/ | |
/** |
This file contains 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
{ | |
"$schema": "https://schemas.wp.org/trunk/theme.json", | |
"version": 2, | |
"settings": { | |
"appearanceTools": true, | |
"custom": { | |
"lineHeight": { | |
"none": 1, | |
"tight": 1.1, | |
"snug": 1.2, |
This file contains 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 | |
/** | |
* | |
* Admin Ajax Search Index | |
* | |
* @package CommerceKit | |
*/ | |
/** | |
* CommerceKit_AJS_Index class. |
This file contains 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
Documentation/Resources: | |
- WordPress Codex: Official WordPress documentation providing extensive information and troubleshooting guides. | |
Link: https://codex.wordpress.org/ | |
- WordPress Support Forums: Community-driven forums where users can ask questions and find solutions to various WordPress issues. | |
Link: https://wordpress.org/support/ | |
- WPBeginner: Offers tutorials, tips, and resources for WordPress beginners and advanced users. | |
Link: https://www.wpbeginner.com/ |
This file contains 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
Creating plugins intentionally causing a 500 Internal Server Error is not a common practice due to the potential risks and impact on a live website. However, for educational purposes or testing on a local or staging site, you might create custom plugins that result in an error, simulating a 500 Internal Server Error. | |
Here are three basic examples of custom plugins that could potentially cause a 500 Internal Server Error: | |
### Plugin 1: PHP Fatal Error | |
Create a custom plugin with PHP code that causes a fatal error. | |
```php | |
<?php | |
/* |
This file contains 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
add_action( 'after_setup_theme', 'cg_remove_default_cart_drawer', 99 ); | |
function cg_remove_default_cart_drawer() { | |
remove_action( 'shoptimizer_before_site', 'shoptimizer_header_cart_drawer', 5 ); | |
add_action( 'shoptimizer_before_site', 'shoptimizer_header_cart_drawer_updated', 5 ); | |
} | |
if ( ! function_exists( 'shoptimizer_header_cart_drawer_updated' ) ) { | |
/** | |
* Display Header Cart Drawer | |
* |
This file contains 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
// Add sorting option to sort products by sales (ASC) on the shop page | |
function add_custom_product_sorting_option( $options ) { | |
$options['sales_asc'] = __( 'Sort by Sales (ASC)', 'text-domain' ); | |
return $options; | |
} | |
add_filter( 'woocommerce_get_catalog_ordering_args', 'add_custom_product_sorting_option' ); | |
// Define sorting option arguments for sorting by sales (ASC) and excluding out-of-stock products | |
function set_custom_product_sorting_option( $sort_args ) { | |
if ( isset( $_GET['orderby'] ) && 'sales_asc' === $_GET['orderby'] ) { |
This file contains 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
// Add sorting option to sort products by sales (ASC) on the shop page | |
function add_custom_product_sorting_option( $options ) { | |
$options['sales_asc'] = __( 'Sort by Sales (ASC)', 'text-domain' ); | |
return $options; | |
} | |
add_filter( 'woocommerce_get_catalog_ordering_args', 'add_custom_product_sorting_option' ); | |
// Define sorting option arguments for sorting by sales (ASC) | |
function set_custom_product_sorting_option( $sort_args ) { | |
if ( isset( $_GET['orderby'] ) && 'sales_asc' === $_GET['orderby'] ) { |
This file contains 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
add_action( 'after_setup_theme', 'cg_remove_default_cart_drawer', 99 ); | |
function cg_remove_default_cart_drawer() { | |
remove_action( 'shoptimizer_before_site', 'shoptimizer_header_cart_drawer', 5 ); | |
add_action( 'shoptimizer_before_site', 'shoptimizer_header_cart_drawer_updated', 5 ); | |
} | |
if ( ! function_exists( 'shoptimizer_header_cart_drawer_updated' ) ) { | |
/** | |
* Display Header Cart Drawer | |
* |
This file contains 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
Serial port 1 (console) output for instance-1-eng-2819 | |
[2J[01;01H[=3h[2J[01;01H[2J[01;01H[=3h[2J[01;01HCSM BBS Table full. | |
BdsDxe: loading Boot0003 "ubuntu" from HD(15,GPT,75740168-3E29-49A1-B76C-768ECDE1FF97,0x2800,0x35000)/\EFI\ubuntu\shimx64.efi | |
BdsDxe: starting Boot0003 "ubuntu" from HD(15,GPT,75740168-3E29-49A1-B76C-768ECDE1FF97,0x2800,0x35000)/\EFI\ubuntu\shimx64.efi | |
UEFI: Attempting to start image. | |
Description: ubuntu | |
FilePath: HD(15,GPT,75740168-3E29-49A1-B76C-768ECDE1FF97,0x2800,0x35000)/\EFI\ubuntu\shimx64.efi | |
OptionNumber: 3. |
NewerOlder