Server IP : 104.21.14.103 / Your IP : 3.15.220.201 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/giankuin/bnnagency.com/wp-content/themes/flatsome/inc/builder/core/server/helpers/ |
Upload File : |
<?php /** * Get all registered elements. * * @return array */ function ux_builder_shortcodes() { return ux_builder( 'elements' ); } /** * Register a shortcode element. * * @param string $type The shortcode tag name * @param array $options */ function add_ux_builder_shortcode( $type, $options ) { ux_builder( 'elements' )->set( $type, $options ); } /** * Removes an element. * * @param string $type */ function ux_builder_remove_element( $type ) { ux_builder( 'elements' )->remove( $type ); } function remove_ux_builder_shortcode( $type ) { ux_builder_remove_element( $type ); } /** * Modify registered element. * * @param string $type * @param array $options */ function ux_builder_edit_element( $type, $options ) { ux_builder( 'elements' )->modify( $type, $options ); } /** * Get element options from meta data. * * @param string $id * @return array */ function ux_builder_element_data( $id ) { if ( empty( $id ) ) return array(); list( $post_id, $element_id ) = explode( '-', $id ); $meta = get_post_meta( $post_id, '_ux_builder_data', true ); return ! empty( $meta['shortcodes'][$id]['options'] ) ? $meta['shortcodes'][$id]['options'] : array(); }