Astra_Ext_White_Label_Markup::remove_description_custom_layouts( array $hooks = array() )
Remove custom layouts description.
Description
Parameters
- $hooks
-
(array) (Optional) Custom layout data.
Default value: array()
Return
(array) $hooks Custom layout data.
Source
File: classes/class-astra-ext-white-label-markup.php
public function remove_description_custom_layouts( $hooks = array() ) { if ( $hooks ) { foreach ( $hooks as $key => $hook_group ) { if ( array_key_exists( 'hooks', $hook_group ) ) { foreach ( $hook_group['hooks'] as $hook_group_key => $hook ) { if ( array_key_exists( 'description', $hook ) ) { unset( $hooks[ $key ]['hooks'][ $hook_group_key ]['description'] ); } } } } } return $hooks; }
Expand full source code Collapse full source code View on Trac