Skip to content

Deprecated Functions

Chris Reynolds edited this page Oct 23, 2015 · 8 revisions

The functions on this page are deprecated and their alternatives should be used (when available).

register_page_builder_layout( $layout_name = '', $parts_array = array(), $user_editable = false )

Deprecated in: 1.6
Use instead: N/A, page builder layouts are created in the plugin via wds_pb_layout post type.

unregister_page_builder_layout( $layout_name = '' )

Deprecated in: 1.6
Use instead: N/A, page builder layouts are created in the plugin via wds_pb_layout post type.

saved_page_builder_layout_exists( $layout_name = '', $editable = true )

Deprecated in: 1.6
Use instead: get_saved_page_builder_layout_by_slug( $layout_slug ) or get_saved_page_builder_layout( $area, $post_type )

Since 1.6 layouts are a post type. Most of this function has to do with the pre-1.6 layouts when they were saved in the options table. Use get_saved_page_builder_layout_by_slug or get_saved_page_builder_layout instead.

wds_page_builder_load_parts( $parts = '' )

Deprecated in: 1.6
Use instead: wds_page_builder_area( $area, $post_id )

We're no longer loading all the parts in one place, parts are saved to areas, so use wds_page_builder_area instead.

####wds_page_builder_wrap( $container = '', $class = '', $layout = '' )

Deprecated in: 1.6
Use instead: N/A, support for adding container and class is planned for wds_page_builder_area. See #56

wds_page_builder_template_part_prefix()

Deprecated in: 1.6
Use instead: N/A

Since 1.6 prefixes aren't used. Instead of using file names to determine part names in the dropdown, use the template part header. See template part header example.

wds_page_builder_template_parts_dir()

Deprecated in: 1.6
Use instead: N/A

Since 1.6 template part directory doesn't need to be hard-coded. See Page Builder Template Stack