# .n? e@T6j# .@ @Ra# 98\7rBְ@Ş{# :Bs@(@d |u3@ "6j# ,n0AѰ@ \J# .U&ȒѰ@ \J# .?@RL# FߞT@RL# 3)4sհ@*\m |@ # 6_HW@VJ |"@V S | @ ڀ |侮@ |@dd |@$y |@q}~ |&@08! +@1! J!(@1# 4f8@1# ,.4@1# 3W@1# F&+@I |e@Rx# ,V8P@oT# 'XM]@/k 6"$lJ@F# 4xBH3O@,*# 9 g B@{# 3p{k@r # 4h2@u/# 3} VL@u/# 6n$VL@u/# 67is_registered( $block_name, $block_style_name ) ) { return null; } return $this->registered_block_styles[ $block_name ][ $block_style_name ]; } /** * Retrieves all registered block styles. * * @since 5.3.0 * * @return array[] Array of arrays containing the registered block styles properties grouped by block type. */ public function get_all_registered() { return $this->registered_block_styles; } /** * Retrieves registered block styles for a specific block type. * * @since 5.3.0 * * @param string $block_name Block type name including namespace. * @return array[] Array whose keys are block style names and whose values are block style properties. */ public function get_registered_styles_for_block( $block_name ) { if ( isset( $this->registered_block_styles[ $block_name ] ) ) { return $this->registered_block_styles[ $block_name ]; } return array(); } /** * Checks if a block style is registered for the given block type. * * @since 5.3.0 * * @param string $block_name Block type name including namespace. * @param string $block_style_name Block style name. * @return bool True if the block style is registered, false otherwise. */ public function is_registered( $block_name, $block_style_name ) { return isset( $this->registered_block_styles[ $block_name ][ $block_style_name ] ); } /** * Utility method to retrieve the main instance of the class. * * The instance will be created if it does not exist yet. * * @since 5.3.0 * * @return WP_Block_Styles_Registry The main instance. */ public static function get_instance() { if ( null === self::$instance ) { self::$instance = new self(); } return self::$instance; } }