Title: Seebz's Replies | WordPress.org

---

# Seebz

  [  ](https://wordpress.org/support/users/seebz/)

 *   [Profile](https://wordpress.org/support/users/seebz/)
 *   [Topics Started](https://wordpress.org/support/users/seebz/topics/)
 *   [Replies Created](https://wordpress.org/support/users/seebz/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/seebz/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/seebz/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/seebz/engagements/)
 *   [Favorites](https://wordpress.org/support/users/seebz/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/users/seebz/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/seebz/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Debug Bar] WP 6.7 Translation loading issue](https://wordpress.org/support/topic/wp-6-7-translation-loading-issue/)
 *  Thread Starter [Seebz](https://wordpress.org/support/users/seebz/)
 * (@seebz)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/wp-6-7-translation-loading-issue/#post-18159346)
 * Thanks for your reply [@psykro](https://wordpress.org/support/users/psykro/) 
   but my `debug.log` is still filled with these notices, on every request.
 *     ```wp-block-code
       [25-Nov-2024 14:44:35 UTC] PHP Notice:  Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>debug-bar</code> domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the <code>init</code> action or later. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in /var/www/html/wp-includes/functions.php on line 6114
       ```
   
 * I confirm that WP is updated to version 6.7.1
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [eslint plugin:@wordpress/eslint-plugin/ not settings spaces](https://wordpress.org/support/topic/eslint-pluginwordpress-eslint-plugin-not-settings-spaces/)
 *  [Seebz](https://wordpress.org/support/users/seebz/)
 * (@seebz)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/eslint-pluginwordpress-eslint-plugin-not-settings-spaces/#post-16520917)
 * I got the same problem.
   Just found we should use the rule “@wordpress/eslint-
   plugin/recommended-with-formatting”
 * > There is also `recommended-with-formatting` ruleset for projects that want 
   > to ensure that [Prettier](https://prettier.io) and [TypeScript](https://www.typescriptlang.org)
   > integration is never activated. This preset has the native ESLint code formatting
   > rules enabled instead.
   >  [@wordpress/eslint-plugin documentation](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-eslint-plugin/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Reusable Blocks Extended] jetpack Social Sharing buttons appear below the shortcode](https://wordpress.org/support/topic/jetpack-social-sharing-buttons-appear-below-the-shortcode/)
 *  [Seebz](https://wordpress.org/support/users/seebz/)
 * (@seebz)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/jetpack-social-sharing-buttons-appear-below-the-shortcode/#post-14912869)
 * Hi [@pinkdreambox](https://wordpress.org/support/users/pinkdreambox/), this is
   related to `the_content` filter used in the plugin.
 * Look at [my reply](https://wordpress.org/support/topic/problems-with-the_content-filter/#post-14912795)
   in the [Problems with the_content filter](https://wordpress.org/support/topic/problems-with-the_content-filter/)
   topic.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Reusable Blocks Extended] Problems with the_content filter](https://wordpress.org/support/topic/problems-with-the_content-filter/)
 *  [Seebz](https://wordpress.org/support/users/seebz/)
 * (@seebz)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/problems-with-the_content-filter/#post-14912795)
 * Same issue with Jetpack [Related Posts](https://jetpack.com/support/related-posts/)
   and [Sharing](https://jetpack.com/support/sharing/) features who also use `the_content`
   filter.
 * These plugins are checking the current post type (with [`get_post_type()`](https://developer.wordpress.org/reference/functions/get_post_type/))
   but reblex does not update the global post before calling the filter.
 * I suggest to add/use the following function instead of `apply_filters( 'the_content',...)`:
 *     ```
       /**
        * reblex_get_filtered_block_content function.
        *
        * @param mixed $id The ID of the reusable block.
        * @return $content The filtered content of the block.
        */
       function reblex_get_filtered_block_content( $id ) {
       	global $post;
       	// backup $post
       	$prev_post = $post;
       	// update $post
       	$post = get_post( $id );
       	setup_postdata( $post );
       	// retrieve content
       	$content = apply_filters( 'the_content', $post->post_content );
       	// restore $post
       	wp_reset_postdata();
       	$post = $prev_post;
       	// return content
       	return $content;
       }
       ```
   
 * A patched version of the file is available in [this gist](https://gist.github.com/seebz/3a0da038d65b7e2ec1fdb50569ebd062).
   
   Hope it will help, sorry for my bad english
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] breadcrumbs “domain/shop/cart,checkout,myaccount”?](https://wordpress.org/support/topic/breadcrumbs-domain-shop-cartcheckoutmyaccount/)
 *  [Seebz](https://wordpress.org/support/users/seebz/)
 * (@seebz)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/breadcrumbs-domain-shop-cartcheckoutmyaccount/#post-9933856)
 * Have you tried to put theses pages as children of the “shop” page ?
 * It works as you want with Storefront theme and WooCommerce 3.2/3.3
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Store Notice no longer in Settings?](https://wordpress.org/support/topic/store-notice-no-longer-in-settings/)
 *  [Seebz](https://wordpress.org/support/users/seebz/)
 * (@seebz)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/store-notice-no-longer-in-settings/#post-9927508)
 * As [@mikejolley](https://wordpress.org/support/users/mikejolley/) says in [another topic](https://wordpress.org/support/topic/cant-remove-this-is-a-demo-store-for-testing-purposes/#post-9923338):
 * > Appearance > Customize > WooCommerce. You’ll find the options there.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Single product page image crop dissapeared](https://wordpress.org/support/topic/single-product-page-image-crop-dissapeared/)
 *  [Seebz](https://wordpress.org/support/users/seebz/)
 * (@seebz)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/single-product-page-image-crop-dissapeared/#post-9927488)
 * Hi, look at this code…
    I’m using it to apply the ratio/crop settings to “single
   images” :
 *     ```
       /**
        * Apply the ratio/crop settings in <code>Customizer > WooCommerce > Product Images</code> to <code>single</code> images.
        */
   
       add_filter( 'woocommerce_get_image_size_single', 'crop_wc_image_single' );
   
       function crop_wc_image_single( $size ) {
           $cropping = get_option( 'woocommerce_thumbnail_cropping', '1: 1' );
   
       	if ( 'uncropped' === $cropping ) {
       		$size['height'] = 9999999999;
       		$size['crop']   = 0;
       	} elseif ( 'custom' === $cropping ) {
       		$width          = max( 1, get_option( 'woocommerce_thumbnail_cropping_custom_width', '4' ) );
       		$height         = max( 1, get_option( 'woocommerce_thumbnail_cropping_custom_height', '3' ) );
       		$size['height'] = round( ( $size['width'] / $width ) * $height );
       		$size['crop']   = 1;
       	} else {
       		$cropping_split = explode( ':', $cropping );
       		$width          = max( 1, current( $cropping_split ) );
       		$height         = max( 1, end( $cropping_split ) );
       		$size['height'] = round( ( $size['width'] / $width ) * $height );
       		$size['crop']   = 1;
       	}
       	return $size;
       }
       ```
   
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Custom Taxonomy Archive Not Showing All Child Terms](https://wordpress.org/support/topic/custom-taxonomy-archive-not-showing-all-child-terms/)
 *  [Seebz](https://wordpress.org/support/users/seebz/)
 * (@seebz)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/custom-taxonomy-archive-not-showing-all-child-terms/#post-2931673)
 * Try this :
 *     ```
       $query->set('orderby', 'title');
       $query->set('order', 'ASC');
       ```
   
 * or
 *     ```
       $query->query_vars['orderby'] = 'title';
       $query->query_vars['order'] = 'ASC';
       ```
   
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [remove parent theme templates post 3.4](https://wordpress.org/support/topic/remove-parent-theme-templates-post-34/)
 *  [Seebz](https://wordpress.org/support/users/seebz/)
 * (@seebz)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/remove-parent-theme-templates-post-34/#post-2883973)
 * pending a better solution, I use the following code :
 *     ```
       $_templates_to_remove = array();
   
       function remove_template( $files_to_delete = array() ){
           if ( is_scalar( $files_to_delete ) ) $files_to_delete = array( $files_to_delete );
   
       	global $_templates_to_remove;
       	$_templates_to_remove = array_unique(array_merge($_templates_to_remove, $files_to_delete));
   
       	add_action('admin_print_footer_scripts', '_remove_template_footer_scripts');
       }
   
       function _remove_template_footer_scripts() {
       	global $_templates_to_remove;
   
       	if ( ! $_templates_to_remove ) { return; }
       	?>
       	<script type="text/javascript">
       	jQuery(function($) {
       		var tpls = <?php echo json_encode($_templates_to_remove); ?>;
       		$.each(tpls, function(i, tpl) {
       			$('select[name="page_template"] option[value="'+ tpl +'"]').remove();
       		});
       	});
       	</script>
       	<?php
       }
   
       // Usage
       add_action('admin_head-post.php', 'remove_parent_templates');
       add_action('admin_head-post-new.php', 'remove_parent_templates');
   
       function remove_parent_templates() {
       	remove_template(array(
       		'page-archives.php',
       		'page-authors.php',
       	));
       }
       ```
   
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Get posts that have no category](https://wordpress.org/support/topic/get-posts-that-have-no-category/)
 *  [Seebz](https://wordpress.org/support/users/seebz/)
 * (@seebz)
 * [14 years ago](https://wordpress.org/support/topic/get-posts-that-have-no-category/#post-2396327)
 * maybe excluding all categories from query :
 *     ```
       $args = array(
       	'tax_query' => array(
       		array(
       			'taxonomy' => 'category',
       			'field' => 'id',
       			'terms' => array( /* all_categories_ids */ ),
       			'operator' => 'NOT IN',
       		)
       	)
       );
       ```
   
 * [http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters](http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Does WordPress Automatically Delete Transients?](https://wordpress.org/support/topic/does-wordpress-automatically-delete-transients/)
 *  [Seebz](https://wordpress.org/support/users/seebz/)
 * (@seebz)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/does-wordpress-automatically-delete-transients/#post-2300448)
 * I had the same problem, so I made ​​a plugin which can be found at this address:
   [https://github.com/Seebz/Snippets/tree/master/Wordpress/plugins/purge-transients](https://github.com/Seebz/Snippets/tree/master/Wordpress/plugins/purge-transients)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Improved Page Permalinks] [Plugin: Improved Page Permalinks] plugin does not function using wordpress 3.3](https://wordpress.org/support/topic/plugin-improved-page-permalinks-plugin-does-not-function-using-wordpress-33/)
 *  Plugin Author [Seebz](https://wordpress.org/support/users/seebz/)
 * (@seebz)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-improved-page-permalinks-plugin-does-not-function-using-wordpress-33/#post-2447461)
 * Plugin updated 😉
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Date based Custom Post Type Archives](https://wordpress.org/support/topic/date-based-custom-post-type-archives/)
 *  [Seebz](https://wordpress.org/support/users/seebz/)
 * (@seebz)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/date-based-custom-post-type-archives/#post-1946798)
 * I have made a little PHP class that register CPT with support of archives by 
   dates.
 * You can found it there : [WP Custom Post Type with archives per dates](http://seebz.net/notes/?note_id=145)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: CMS Tree Page View] Not Working in 2.9.2](https://wordpress.org/support/topic/plugin-cms-tree-page-view-not-working-in-292/)
 *  [Seebz](https://wordpress.org/support/users/seebz/)
 * (@seebz)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/plugin-cms-tree-page-view-not-working-in-292/#post-1520900)
 * Work fine for me (tested with qtranslate actived)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: CMS Tree Page View] Not Working in 2.9.2](https://wordpress.org/support/topic/plugin-cms-tree-page-view-not-working-in-292/)
 *  [Seebz](https://wordpress.org/support/users/seebz/)
 * (@seebz)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/plugin-cms-tree-page-view-not-working-in-292/#post-1520895)
 *     ```
       $post_modified_time = get_post_modified_time('U', false, $onePage, false);
       $post_modified_time = date_i18n(get_option('date_format'), $post_modified_time, false);
       ```
   
 * date_i18n() show some errors and return an empty string.
    it was caused by the
   qtrans_timeModifiedFromPostForCurrentLanguage() filter ( wich don’t work correctly?)
 * I think you must say this at qtranslate support.
 * (sorry for my bad english)

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/users/seebz/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/seebz/replies/page/2/?output_format=md)