Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #798788

    Hi,

    I want to extend the avia layout architekt with my own funtionality. I want to get a list menu with my own list from my own db with a $wpdb query. How is the best way to hook in the function or make the own function without overwritting the core.

    I have a child theme and added as well

    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
    function avia_include_shortcode_template($paths)
    {
    	$template_url = get_stylesheet_directory();
        	array_unshift($paths, $template_url.'/shortcodes/');
    
    	return $paths;
    }

    Can you give me an advise or tips or are there documentations? Enclosed an example how it should look like, but I want to get the data from my db. How it should look like

    thanks Alex

    #799801

    Hey aossi,

    Please take a look here:

    and here:

    Let us know if there is anything else

    Best regards,
    Basilis

    #1413577

    answer not anymore readyble

    #1413605
    add_action('ava_builder_shortcode_files_loaded','after_setup_theme_shortcode_textblock');
    function after_setup_theme_shortcode_textblock() {
    	if( ! class_exists( 'avia_wuk_textblock' ) ) {
    		class avia_wuk_textblock extends aviaShortcodeTemplate {

    As tipp, when you want to use a add_action ;)

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.