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
ab | |
aber | |
abermaliges | |
abermals | |
abgerufen | |
abgerufene | |
abgerufener | |
abgerufenes | |
abgesehen | |
acht |
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 | |
/** | |
* Custom Post Type: Landingpages. | |
* Add to your functions.php | |
*/ | |
function cptui_register_my_cpts_landingpage() { | |
/** | |
* Post Type: Landingpages. |
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 | |
/** | |
* Astra Theme: Display last modified and published date in the post metadata. | |
* See: https://j0e.org/astra-tipps-tricks/ | |
*/ | |
function j0e_post_date( $output ) { | |
$output = ''; | |
$format = apply_filters( 'astra_post_date_format', '' ); | |
$published_date = esc_html( get_the_date( $format ) ); |
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 | |
/** | |
* Add featured image column to WP admin panel - posts AND pages | |
* See: https://bloggerpilot.com/featured-image-admin/ | |
*/ | |
// Set thumbnail size | |
add_image_size( 'j0e_admin-featured-image', 60, 60, false ); |
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 | |
function j0e_register_block_patterns() { | |
if ( class_exists( 'WP_Block_Patterns_Registry' ) ) { | |
register_block_pattern( | |
'j0e-header-pattern', | |
array( | |
'title' => __( 'Überschrift', 'j0e-patterns' ), |
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 | |
// Find the description at https://bloggerpilot.com/en/gutenberg-for-woocommerce/ | |
// Disable new WooCommerce product template (from Version 7.7.0) | |
function bp_reset_product_template($post_type_args) { | |
if (array_key_exists('template', $post_type_args)) { | |
unset($post_type_args['template']); | |
} | |
return $post_type_args; | |
} |
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 | |
/* | |
* WordPress: Remove unwonted image sizes. | |
* In this code I remove the three sizes medium_large, 1536x1536, 2048x2048 | |
* See full article: | |
*/ | |
add_filter('intermediate_image_sizes', function($sizes) { | |
return array_diff($sizes, ['medium_large']); // Medium Large (768 x 0) |
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 | |
/** | |
* Template Name: Tools | |
* | |
* @package kadence | |
*/ | |
namespace Kadence; | |
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 | |
/** | |
* Template Name: something | |
* | |
* @package kadence | |
*/ | |
namespace Kadence; | |
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 | |
// Add alt tag to WordPress Gravatar images | |
// Full how-to: https://bloggerpilot.com/gravatar-alt-tag/ | |
function bloggerpilot_gravatar_alt($bloggerpilotGravatar) { | |
if (have_comments()) { | |
$alt = get_comment_author(); | |
} | |
else { | |
$alt = get_the_author_meta('display_name'); |