Astra_Ext_White_Label_Markup::change_custom_hook_url_slug( array $slug )
Rewrite custom layouts slug.
Description
Parameters
- $slug
-
(array) (Required) Custom layout slug.
Return
(array) $slug Custom layout slug.
Source
File: classes/class-astra-ext-white-label-markup.php
public function change_custom_hook_url_slug( $slug ) { $theme_whitelabelled_name = self::get_whitelabel_string( 'astra', 'name', false ); // Get white label theme name. $theme_name = strtolower( self::astra_pro_whitelabel_name() ); $theme_name = str_replace( ' ', '-', $theme_name ); if ( false !== $theme_whitelabelled_name ) { $slug = str_replace( ' ', '-', $theme_whitelabelled_name ) . '-advanced-hook'; } return $slug; }
Expand full source code Collapse full source code View on Trac