Title: curiousjake's Replies | WordPress.org

---

# curiousjake

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

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

 Search replies:

## Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[GenerateBlocks] Query Loop Block – Default output when no posts](https://wordpress.org/support/topic/query-loop-block-default-output-when-no-posts/)
 *  Thread Starter [curiousjake](https://wordpress.org/support/users/curiousjake/)
 * (@curiousjake)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/query-loop-block-default-output-when-no-posts/#post-15890127)
 * Hi Ying,
 * Perhaps some raw HTML? Or a backup post template block for when there are no 
   posts? But even just some text saying ‘No posts found’ would be fine.
 * Thanks,
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[BjornTech PayPal POS integration for WooCommerce] Syncing stock both ways](https://wordpress.org/support/topic/syncing-stock-both-ways/)
 *  Thread Starter [curiousjake](https://wordpress.org/support/users/curiousjake/)
 * (@curiousjake)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/syncing-stock-both-ways/#post-15316042)
 * Hi Carl,
 * Great, thanks. So I need to have the Stocklevel setting checked to overwrite 
   on _both_ ‘Products to Zettle’ and ‘Products from Zettle’ so that stock syncs
   both ways?
 * Thanks,
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Popular Posts] Bug: Child Theme Theme Overrides](https://wordpress.org/support/topic/bug-child-theme-theme-overrides/)
 *  Thread Starter [curiousjake](https://wordpress.org/support/users/curiousjake/)
 * (@curiousjake)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/bug-child-theme-theme-overrides/#post-15253435)
 * Awesome, thanks so much for your efficiency [@hcabrera](https://wordpress.org/support/users/hcabrera/)!
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[GeneratePress] Adding custom Google fonts](https://wordpress.org/support/topic/adding-custom-google-fonts/)
 *  Thread Starter [curiousjake](https://wordpress.org/support/users/curiousjake/)
 * (@curiousjake)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/adding-custom-google-fonts/#post-14939126)
 * Hi [@ejcabquina](https://wordpress.org/support/users/ejcabquina/),
 * Thanks for the response! I don’t think I explained properly. Using the filter
   above _does_ add the font to the list, so I don’t think it’s a priority issue.
   The problem is that the filter isn’t applied when GP fetches font variants, so
   it isn’t possible to import the font variants from Google. The `'generate_google_fonts_array'`
   filter, however, is applied in the function `generate_get_all_google_fonts` function,
   which is called by `generate_get_google_font_variation`:
 *     ```
       /**
       	 * Wrapper function to find variants for chosen Google Fonts
       	 * Example: generate_get_google_font_variation( 'Open Sans' )
       	 *
       	 * @since 1.3.0
       	 *
       	 * @param string $font The font to look up.
       	 * @param string $key The option to look up.
       	 */
       	function generate_get_google_font_variants( $font, $key = '' ) {
       		// Don't need variants if we're using a system font.
       		if ( in_array( $font, generate_typography_default_fonts() ) ) {
       			return;
       		}
   
       		// Return if we have our variants saved.
       		if ( '' !== $key && get_theme_mod( $key . '_variants' ) ) {
       			return get_theme_mod( $key . '_variants' );
       		}
   
       		$defaults = generate_get_default_fonts();
   
       		if ( $defaults[ $key ] === $font ) {
       			return $defaults[ $key . '_variants' ];
       		}
   
       		// Grab all of our fonts.
       		// It's a big list, so hopefully we're not even still reading.
       		$fonts = generate_get_all_google_fonts();
   
       		// Get the ID from our font.
       		$id = strtolower( str_replace( ' ', '_', $font ) );
   
       		// If the ID doesn't exist within our fonts, we can bail.
       		if ( ! array_key_exists( $id, $fonts ) ) {
       			return;
       		}
   
       		// Grab all of the variants associated with our font.
       		$variants = $fonts[ $id ]['variants'];
   
       		// Loop through them and put them into an array, then turn them into a comma separated list.
       		$output = array();
       		if ( $variants ) {
       			foreach ( $variants as $variant ) {
       				$output[] = $variant;
       			}
   
       			return implode( ',', apply_filters( 'generate_typography_variants', $output ) );
       		}
       	}
       ```
   
 * Does that make sense or have I misunderstood?
 * Thanks!
    -  This reply was modified 4 years, 9 months ago by [curiousjake](https://wordpress.org/support/users/curiousjake/).

Viewing 4 replies - 1 through 4 (of 4 total)