themeblvd / jumpstart

The most extensive WordPress theme for both users and developers from Theme Blvd
http://wpjumpstart.com
GNU General Public License v2.0
5 stars 2 forks source link

Conflicting hook names custom layouts #322

Closed themeblvd closed 6 years ago

themeblvd commented 6 years ago

In layout.php we've got:

do_action( 'themeblvd_'.$args['type'], $args['id'], $args['options'] );

We should change this action name to themeblvdelement{$type}, so it doesn't conflict with other general filters.

Note that this will also effect this in the layout builder:

https://github.com/themeblvd/theme-blvd-layout-builder/blob/master/inc/api/class-tb-builder-api.php#L7680

So that add_action() call will also need to be updated in the layout builder, too.