Is it safe to hook into action asl_res_vertical_after_content?
-
Is it safe to hook into action
asl_res_vertical_after_content
to add custom content, and what would be the best way to do it, preferably accessing the current loop item?add_action(‘asl_res_vertical_after_content’, function( $r ) {
Can we use
$r
as a parameter, as it is not explicitly passed whenajax-search-lite/includes/views/result.php
doesdo_action('asl_res_vertical_after_content')
? Should we defineglobal $r
instead? Or is there a more elegant and documented way?I am aware of
$s_options['showauthor']
,$s_options['showdate']
and$s_options['showdescription']
the latter to show$r->content
but I can’t use it and tweak the content as that would affect other parts of the blogs in unintended ways.Unfortunately, I did not find anything about my case in the documentation on https://documentation.ajaxsearchlite.com/advanced-options/title-and-content-fields?q=asl_res_vertical_after_content so I am hesitant to use an undocumented internal function without official API support.
- The topic ‘Is it safe to hook into action asl_res_vertical_after_content?’ is closed to new replies.