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.
thanks Alex
Hey aossi,
Please take a look here:
and here:
Let us know if there is anything else
Best regards,
Basilis
answer not anymore readyble
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 ;)