/var
/www
/vhosts
/confeuropacademy.org
/httpdocs
/wp-content
/plugins
/insert-php
/includes
/shortcodes
/shortcode-php.php
if ( ! $snippet || empty( $snippet_meta ) ) {
return;
}
$attr = $this->filterAttributes( $attr, $id );
// Let users pass arbitrary variables, through shortcode attributes.
// @since 2.0.5
extract( $attr, EXTR_SKIP );
$is_activate = $this->getSnippetActivate( $snippet_meta );
$snippet_scope = $this->getSnippetScope( $snippet_meta );
$snippet_content = $this->getSnippetContent( $snippet, $snippet_meta, $id );
if ( ! $is_activate || empty( $snippet_content ) || $snippet_scope != 'shortcode' || WINP_Helper::is_safe_mode() ) {
return;
}
eval( $snippet_content );
}
}
Arguments
"Use of undefined constant fad_ore - assumed 'fad_ore' (this will throw an Error in a future version of PHP)"
/var
/www
/vhosts
/confeuropacademy.org
/httpdocs
/wp-content
/plugins
/insert-php
/includes
/shortcodes
/shortcode-php.php
if ( ! $snippet || empty( $snippet_meta ) ) {
return;
}
$attr = $this->filterAttributes( $attr, $id );
// Let users pass arbitrary variables, through shortcode attributes.
// @since 2.0.5
extract( $attr, EXTR_SKIP );
$is_activate = $this->getSnippetActivate( $snippet_meta );
$snippet_scope = $this->getSnippetScope( $snippet_meta );
$snippet_content = $this->getSnippetContent( $snippet, $snippet_meta, $id );
if ( ! $is_activate || empty( $snippet_content ) || $snippet_scope != 'shortcode' || WINP_Helper::is_safe_mode() ) {
return;
}
eval( $snippet_content );
}
}
Arguments
2
"Use of undefined constant fad_ore - assumed 'fad_ore' (this will throw an Error in a future version of PHP)"
"/var/www/vhosts/confeuropacademy.org/httpdocs/wp-content/plugins/insert-php/includes/shortcodes/shortcode-php.php(52) : eval()'d code"
57
array:19 [
"attr" => array:3 [
"id" => "1127"
"iddo" => "427"
"tutto" => "0"
]
"content" => ""
"tag" => "wbcr_php_snippet"
"id" => 1127
"snippet" => WP_Post {}
"snippet_meta" => array:15 [
"_edit_lock" => array:1 [
0 => "1625825250:2"
]
"_edit_last" => array:1 [
0 => "2"
]
"dfiFeatured" => array:1 [
0 => "a:1:{i:0;s:0:"";}"
]
"rs_page_bg_color" => array:1 [
0 => ""
]
"wbcr_inp_snippet_location" => array:1 [
0 => "header"
]
"wbcr_inp_snippet_type" => array:1 [
0 => "php"
]
"wbcr_inp_snippet_linking" => array:1 [
0 => ""
]
"wbcr_inp_snippet_priority" => array:1 [
0 => "320"
]
"wbcr_inp_snippet_filters" => array:1 [
0 => ""
]
"wbcr_inp_changed_filters" => array:1 [
0 => "0"
]
"wbcr_inp_snippet_activate" => array:1 [
0 => "1"
]
"wbcr_inp_snippet_scope" => array:1 [
0 => "shortcode"
]
"wbcr_inp_snippet_custom_name" => array:1 [
0 => ""
]
"wbcr_inp_snippet_description" => array:1 [
0 => ""
]
"wbcr_inp_snippet_tags" => array:1 [
0 => "iddo,tutto,programmas"
]
]
"is_activate" => true
"snippet_scope" => "shortcode"
"snippet_content" => """
$servername = "85.94.218.162";\r\n
$username = "wp123";\r\n
$password = "0nl1n3@1982";\r\n
$dbname = "confeuronew";\r\n
\r\n
/*$conn = new mysqli($servername, $username, $password, $dbname);\r\n
if ($conn->connect_error) {\r\n
die("Connection failed: " . $conn->connect_error);\r\n
} \r\n
*/\r\n
\r\n
\r\n
$nConnection = mysqli_connect($servername,$username, $password);\r\n
mysqli_select_db($nConnection,$dbname);\r\n
//mysqli_query($nConnection,"SET CHARACTER SET utf8 ");\r\n
\r\n
$sql = "SELECT * FROM fad_corsi where idfad=".$iddo;\r\n
$rs=mysqli_query($nConnection,$sql);\r\n
$row=mysqli_fetch_array($rs,MYSQLI_BOTH);\r\n
\r\n
\r\n
\r\n
switch ($programmas)\r\n
{\r\n
\tcase 1:\t\t\techo nl2br($row[fad_programma]);\r\n
\t\t\t\t\tbreak;\r\n
\tcase 2:\t\t\t?>\r\n
\t\t\t\t\tPer l'utilizzo dei corsi in modalità e-Learning è sufficente un computer, notebook, smartphone o tablet aggiornato e con una connessione a internet.<BR>\r\n
\t\t\t\t\t\t\tI corsi sono disponibili 24/24h durante l'intero periodo di attivazione e possono essere svolti anche in sessioni multiple, senza perdere lo stato di avanzamento.<BR><BR>\r\n
\t\t\t\t\t\t\tPer i corsi che prevedono la videoconferenza con il docente, sarà necessario collegarsi nelle modalità fornite e negli orari specifici indicati.\t\t\r\n
\t\t\t\t\t<?php\r\n
\t\t\t\t\tbreak;\r\n
\tdefault:\t\r\n
\tif ($tutto==1)\r\n
\t{\t?>\r\n
\t\t<ul><?php if ($row[fad_info]) { ?>\r\n
\t\t\t<li><strong>Informazioni</strong>: <?php echo $row[fad_info];?><?php } ?>\r\n
\t\t\t<?php if ($row["fad_mex1"]) echo "<br>".$row[fad_mex1];?></li>\r\n
\t\t\t<li><strong>Durata</strong>: <?php echo $row[fad_ore];?><?php ?> ore </li>\r\n
\t\t\t<li><strong>Riferimenti Legislativi</strong>: <?php echo $row[fad_desc];?></li>\r\n
\t\t\t<?php if ($row[fad_plus]) { ?>\r\n
\t\t\t<li><strong>Specifiche</strong>: <?php echo $row[fad_plus];?></li><?php } ?>\r\n
\t\t\t<?php if ($row[fad_agg]>0) { ?>\r\n
\t\t\t<li><strong>Aggiornamento</strong>: <?php echo $row[fad_agg];?> anni</li><?php } ?>\r\n
\t\t\t<li><strong>Codice Corso</strong>: <?php echo $row[fad_short];?></li>\r\n
\t\t\t<li><strong>Durata del corso</strong>: <?php echo $row[fad_ore];?> ore online</li>\r\n
\t\t\t<li><?php if ($row[fad_piu]) { echo "Richiede formazione frontale aggiuntiva";} else { echo "Il corso si può svolgere completamente in modalit e-Learning";} ?></li>\r\n
\t\t\t<li><strong>Metodologia di svolgimento</strong>: Il percorso formativo è utilizzabile per un massimo 4 mesi dalla data di attivazione.\r\n
\t\t\t\t\t\t<br>Ogni discente ha un accesso personale.<br>\r\n
\t\t\t\t\t\tIl percorso formativo è suddiviso in materiale di apprendimento con durate minime e tracciatura dello svolgimento. \r\n
\t\t\t\t\t\tAl termine di ogni passaggio è previsto un test di apprendimento che abilita i passaggi successivi.<br>\r\n
\t\t\t\t\t\tSolo al termine del corso (superando tutti i test, incluso il test di valutazione finale) è possibile richiedere l'attestato di formazione.\t</li>\r\n
\t </ul>\r\n
\r\n
\t<?php\r\n
\t} else { \r\n
\t?><strong>Durata</strong>: <?php echo $row[fad_ore];?> ore <div style="display:block"></div><BR><?\r\n
\t\techo $row[fad_info]; \r\n
\t\tif ($row["fad_var"]) echo "<br>".$row[fad_var];\r\n
\t\techo "<br>";\r\n
\t\t?><strong>Codice Corso</strong>: <?php echo $row[fad_short];?>\r\n
\t<?php } //tutto\r\n
break;\r\n
} //programma\r\n
\r\n
"""
"iddo" => "427"
"tutto" => "0"
"servername" => "85.94.218.162"
"username" => "wp123"
"password" => "0nl1n3@1982"
"dbname" => "confeuronew"
"nConnection" => mysqli {}
"sql" => "SELECT * FROM fad_corsi where idfad=427"
"rs" => mysqli_result {}
"row" => array:106 [
0 => "427"
"idfad" => "427"
1 => "HACCP MOLISE - Alimentaristi - AGGIORNAMENTO"
"fad_nome" => "HACCP MOLISE - Alimentaristi - AGGIORNAMENTO"
2 => "CE 852/04 - CSR 2470/06 - CSR 59/10 - DGR Molise 372/08 - Circolare Molise 0013731/08 - Nulla Osta Prot. N° 77134/17"
"fad_desc" => "CE 852/04 - CSR 2470/06 - CSR 59/10 - DGR Molise 372/08 - Circolare Molise 0013731/08 - Nulla Osta Prot. N° 77134/17"
3 => null
"fad_desc2" => null
4 => "35"
"fad_prezzo" => "35"
5 => "6"
"fad_ore" => "6"
6 => "0"
"fad_step" => "0"
7 => "1"
"fad_online" => "1"
8 => "RO MOLISE HACCP A6"
"fad_short" => "RO MOLISE HACCP A6"
9 => "0"
"fad_personal" => "0"
10 => ""
"fad_suffix" => ""
11 => "5"
"fad_agg" => "5"
12 => ""
"fad_data" => ""
13 => ""
"fad_dove" => ""
14 => "0"
"fad_durata" => "0"
15 => "0"
"fad_scad" => "0"
16 => "0"
"fad_tipo" => "0"
17 => "1"
"fad_fax" => "1"
18 => ""
"fad_nomeatt" => ""
19 => ""
"fad_text" => ""
20 => "0"
"fad_piu" => "0"
21 => "HACCP - Formazione per alimentaristi - AGGIORNAMENTO"
"fad_nome_vis" => "HACCP - Formazione per alimentaristi - AGGIORNAMENTO"
22 => "HACCP LINGUA ROMENA"
"fad_gruppo" => "HACCP LINGUA ROMENA"
23 => "HACCP"
"fad_law" => "HACCP"
24 => null
"fad_plus" => null
25 => "101"
"fad_ord" => "101"
26 => "700"
"fad_gruppo_ord" => "700"
27 => "Dott. Pasquale Minale - C.F. MNLPQL66H11F839Y"
"fad_docente1" => "Dott. Pasquale Minale - C.F. MNLPQL66H11F839Y"
28 => "Dott. Pietro Tindaro Ballarino - C.F. BLLPRT75S10F206O"
"fad_docente2" => "Dott. Pietro Tindaro Ballarino - C.F. BLLPRT75S10F206O"
29 => null
"fad_requisiti" => null
30 => null
"fad_tipoatt" => null
31 => "0"
"fad_dp" => "0"
32 => "70"
"fad_perc" => "70"
33 => """
Formazione e-learning non prevista dalla normativa regionale.\r\n
Il corso di formazione è da intendersi come aiuto propedeutico alla formazione del discente da parte del datore di lavoro.
"""
"fad_var" => """
Formazione e-learning non prevista dalla normativa regionale.\r\n
Il corso di formazione è da intendersi come aiuto propedeutico alla formazione del discente da parte del datore di lavoro.
"""
34 => "0"
"fad_auth" => "0"
35 => ""
"fad_messaggio" => ""
36 => null
"fad_testoa" => null
37 => null
"fad_testob" => null
38 => null
"fad_font" => null
39 => null
"fad_prezzo_prt" => null
40 => null
"fad_prezzo_wps" => null
41 => null
"fad_pagina" => null
42 => ""
"fad_info" => ""
43 => null
"fad_ico" => null
44 => "romania.png"
"fad_ico_gruppo" => "romania.png"
45 => """
Formazione e-learning non prevista dalla normativa regionale.\r\n
Il corso di formazione è da intendersi come aiuto propedeutico alla formazione del discente da parte del datore di lavoro.
"""
"fad_mex1" => """
Formazione e-learning non prevista dalla normativa regionale.\r\n
Il corso di formazione è da intendersi come aiuto propedeutico alla formazione del discente da parte del datore di lavoro.
"""
46 => null
"fad_atthtml" => null
47 => "0"
"fad_elearning_att" => "0"
48 => ""
"fad_elearning_att_txta" => ""
49 => ""
"fad_elearning_att_txtb" => ""
50 => "La normativa regionale prevede la possibilità di erogare formazione HACCP anche in modalità e-learning, previo accreditamento e validazione dei percorsi formativi. Siamo in attesa di invio procedura per validazione del percorso formativo e accreditamento. \r\n"
"fad_noteinterne" => "La normativa regionale prevede la possibilità di erogare formazione HACCP anche in modalità e-learning, previo accreditamento e validazione dei percorsi formativi. Siamo in attesa di invio procedura per validazione del percorso formativo e accreditamento. \r\n"
51 => ""
"fad_programma" => ""
52 => "attestato_unicusano"
"fad_attestato" => "attestato_unicusano"
]
]
/var
/www
/vhosts
/confeuropacademy.org
/httpdocs
/wp-content
/plugins
/insert-php
/includes
/shortcodes
/shortcode-php.php
if ( ! $snippet || empty( $snippet_meta ) ) {
return;
}
$attr = $this->filterAttributes( $attr, $id );
// Let users pass arbitrary variables, through shortcode attributes.
// @since 2.0.5
extract( $attr, EXTR_SKIP );
$is_activate = $this->getSnippetActivate( $snippet_meta );
$snippet_scope = $this->getSnippetScope( $snippet_meta );
$snippet_content = $this->getSnippetContent( $snippet, $snippet_meta, $id );
if ( ! $is_activate || empty( $snippet_content ) || $snippet_scope != 'shortcode' || WINP_Helper::is_safe_mode() ) {
return;
}
eval( $snippet_content );
}
}
/var
/www
/vhosts
/confeuropacademy.org
/httpdocs
/wp-content
/plugins
/insert-php
/libs
/factory
/shortcodes
/shortcode.class.php
if ( ! empty( $post ) && ! empty( $this->shortcode_name ) ) {
$found_shortcodes = get_post_meta( $post->ID, self::$meta_key_shorcode_assets_for_posts, true );
if ( $found_shortcodes && ! is_array( $found_shortcodes ) ) {
$shortcodes = $this->shortcode_name;
if ( ! is_array( $shortcodes ) ) {
$shortcodes = [ $this->shortcode_name ];
}
$found_shortcodes = [];
$found_shortcodes[ $shortcodes[0] ] = [];
$found_shortcodes[ $shortcodes[0] ][] = $attr;
update_post_meta( $post->ID, self::$meta_key_shorcode_assets_for_posts, $found_shortcodes );
}
}
ob_start();
$this->html( $attr, $content, $tag );
$html = ob_get_clean();
//return nl2br($html);
return $html;
}
/**
* Configures assets (js and css) for the shortcodes.
*
* The method should be overwritten in a deferred class.
*
* @since 1.0.0
* @return void
*/
public function assets() {
}
public function onPostSave( $post ) {
}
Arguments
array:3 [
"id" => "1127"
"iddo" => "427"
"tutto" => "0"
]
""
"wbcr_php_snippet"
/var
/www
/vhosts
/confeuropacademy.org
/httpdocs
/wp-content
/plugins
/insert-php
/libs
/factory
/shortcodes
/shortcodes.php
public $connected = array();
/**
* This method allows to create a new shortcode object for each call.
*
* @param string $name A shortcode name.
* @param array $arguments
* @return string
*/
public function __call($name, $arguments)
{
list($prefix, $type) = explode('_', $name, 2);
if( $prefix !== 'shortcode' ) {
return;
}
$blank = new $type($this->class_to_plugin[$type]);
return $blank->render($arguments[0], $arguments[1], $arguments[2]);
}
/**
* Registers a new shortcode.
*
* @since 1.0.0
* @param string $class_name A short code class name.
* @return void
*/
public function register($class_name, $plugin)
{
$shortcode = new $class_name($plugin);
$shortcode->manager = $this;
$this->shortcodes[] = $shortcode;
foreach($shortcode->shortcode_name as $shortcode_name) {
$class_name = get_class($shortcode);
$this->class_to_plugin[$class_name] = $plugin;
Arguments
array:3 [
"id" => "1127"
"iddo" => "427"
"tutto" => "0"
]
""
"wbcr_php_snippet"
/var
/www
/vhosts
/confeuropacademy.org
/httpdocs
/wp-includes
/shortcodes.php
* Filters whether to call a shortcode callback.
*
* Returning a non-false value from filter will short-circuit the
* shortcode generation process, returning that value instead.
*
* @since 4.7.0
*
* @param false|string $return Short-circuit return value. Either false or the value to replace the shortcode with.
* @param string $tag Shortcode name.
* @param array|string $attr Shortcode attributes array or empty string.
* @param array $m Regular expression match array.
*/
$return = apply_filters( 'pre_do_shortcode_tag', false, $tag, $attr, $m );
if ( false !== $return ) {
return $return;
}
$content = isset( $m[5] ) ? $m[5] : null;
$output = $m[1] . call_user_func( $shortcode_tags[ $tag ], $attr, $content, $tag ) . $m[6];
/**
* Filters the output created by a shortcode callback.
*
* @since 4.7.0
*
* @param string $output Shortcode output.
* @param string $tag Shortcode name.
* @param array|string $attr Shortcode attributes array or empty string.
* @param array $m Regular expression match array.
*/
return apply_filters( 'do_shortcode_tag', $output, $tag, $attr, $m );
}
/**
* Searches only inside HTML elements for shortcodes and process them.
*
* Any [ or ] characters remaining inside elements will be HTML encoded
* to prevent interference with shortcodes that are outside the elements.
* Assumes $content processed by KSES already. Users with unfiltered_html
Arguments
"shortcode_WINP_SnippetShortcodePhp"
array:3 [
0 => array:3 [
"id" => "1127"
"iddo" => "427"
"tutto" => "0"
]
1 => ""
2 => "wbcr_php_snippet"
]
Arguments
array:7 [
0 => "[wbcr_php_snippet id="1127" iddo=427 tutto=0]"
1 => ""
2 => "wbcr_php_snippet"
3 => " id="1127" iddo=427 tutto=0"
4 => ""
5 => ""
6 => ""
]
/var
/www
/vhosts
/confeuropacademy.org
/httpdocs
/wp-includes
/shortcodes.php
if ( false === strpos( $content, '[' ) ) {
return $content;
}
if ( empty( $shortcode_tags ) || ! is_array( $shortcode_tags ) ) {
return $content;
}
// Find all registered tag names in $content.
preg_match_all( '@\[([^<>&/\[\]\x00-\x20=]++)@', $content, $matches );
$tagnames = array_intersect( array_keys( $shortcode_tags ), $matches[1] );
if ( empty( $tagnames ) ) {
return $content;
}
$content = do_shortcodes_in_html_tags( $content, $ignore_html, $tagnames );
$pattern = get_shortcode_regex( $tagnames );
$content = preg_replace_callback( "/$pattern/", 'do_shortcode_tag', $content );
// Always restore square braces so we don't break things like <!--[if IE ]>.
$content = unescape_invalid_shortcodes( $content );
return $content;
}
/**
* Retrieves the shortcode regular expression for searching.
*
* The regular expression combines the shortcode tags in the regular expression
* in a regex class.
*
* The regular expression contains 6 different sub matches to help with parsing.
*
* 1 - An extra [ to allow for escaping shortcodes with double [[]]
* 2 - The shortcode name
* 3 - The shortcode argument list
* 4 - The self closing /
* 5 - The content of a shortcode when it wraps some content.
Arguments
"/\[(\[?)(wbcr_php_snippet)(?![\w-])([^\]\/]*(?:\/(?!\])[^\]\/]*)*?)(?:(\/)\]|\](?:([^\[]*+(?:\[(?!\/\2\])[^\[]*+)*+)\[\/\2\])?)(\]?)/"
"do_shortcode_tag"
"""
[wbcr_php_snippet id="1127" iddo=427 tutto=0]\r\n
\r\n
"""
/var
/www
/vhosts
/confeuropacademy.org
/httpdocs
/wp-content
/themes
/porto
/inc
/functions
/post.php
}
}
if ( 'html' != $porto_settings['blog-excerpt-type'] ) {
$content = '<p class="post-excerpt">' . $content . '</p>';
}
return $content;
}
endif;
if ( ! function_exists( 'porto_the_content' ) ) :
function porto_the_content( $content = null, $echo = true ) {
if ( null === $content ) {
$content = get_the_content();
}
if ( function_exists( 'has_blocks' ) && has_blocks( $content ) ) {
$result = do_shortcode( do_blocks( $content ) );
} else {
$result = do_shortcode( $content );
}
if ( ! $echo ) {
return $result;
}
echo porto_filter_output( $result );
}
endif;
if ( ! function_exists( 'porto_get_attachment' ) ) :
function porto_get_attachment( $attachment_id, $size = 'full', $force_resize = false ) {
if ( ! $attachment_id ) {
return false;
}
$attachment = get_post( $attachment_id );
if ( ! $force_resize ) {
$image = wp_get_attachment_image_src( $attachment_id, $size );
} else {
$image = porto_image_resize( $attachment_id, $size );
if ( ! $image ) {
return false;
Arguments
"""
[wbcr_php_snippet id="1127" iddo=427 tutto=0]\r\n
\r\n
"""
/var
/www
/vhosts
/confeuropacademy.org
/httpdocs
/wp-content
/themes
/porto
/inc
/functions
/post.php
endif;
if ( ! function_exists( 'porto_get_excerpt' ) ) :
function porto_get_excerpt( $limit = 45, $more_link = true, $more_style_block = false ) {
global $porto_settings;
if ( ! $limit ) {
$limit = 45;
}
if ( has_excerpt() ) {
$content = get_the_excerpt();
} else {
$content = get_the_content();
}
$pattern = '/\[vc_custom_heading(.+?)?\](?:(.+?)?\[\/vc_custom_heading\])?/';
$content = preg_replace( $pattern, '', $content );
$content = porto_strip_tags( porto_the_content( $content, false ) );
if ( isset( $porto_settings['blog-excerpt-base'] ) && 'characters' == $porto_settings['blog-excerpt-base'] ) {
if ( mb_strlen( $content ) > $limit ) {
$content = mb_substr( $content, 0, $limit ) . '...';
}
} else {
$content = explode( ' ', $content, $limit );
if ( count( $content ) >= $limit ) {
array_pop( $content );
if ( $more_link ) {
$content = implode( ' ', $content ) . '... ';
} else {
$content = implode( ' ', $content ) . '...';
}
} else {
$content = implode( ' ', $content );
}
}
Arguments
"""
[wbcr_php_snippet id="1127" iddo=427 tutto=0]\r\n
\r\n
"""
false
/var
/www
/vhosts
/confeuropacademy.org
/httpdocs
/wp-content
/themes
/porto
/inc
/functions
/woocommerce.php
}
function porto_woocommerce_shop_loop_item_title_close() {
?>
</a>
<?php
}
function porto_woocommerce_shop_loop_item_title() {
echo '<h3 class="woocommerce-loop-product__title">';
the_title();
echo '</h3>';
}
function porto_woocommerce_single_excerpt() {
global $post;
if ( ! $post->post_excerpt ) {
return;
}
?>
<div class="description">
<?php //echo apply_filters( 'woocommerce_short_description', $post->post_excerpt ); ?>
<?php echo apply_filters( 'woocommerce_short_description', porto_get_excerpt( apply_filters( 'porto_woocommerce_short_description_length', 30 ), false ) ); ?>
</div>
<?php
}
function porto_woocommerce_next_product( $in_same_cat = false, $excluded_categories = '' ) {
porto_adjacent_post_link_product( $in_same_cat, $excluded_categories, false );
}
function porto_woocommerce_prev_product( $in_same_cat = false, $excluded_categories = '' ) {
porto_adjacent_post_link_product( $in_same_cat, $excluded_categories, true );
}
function porto_adjacent_post_link_product( $in_same_cat = false, $excluded_categories = '', $previous = true ) {
if ( $previous && is_attachment() ) {
$post = get_post( get_post()->post_parent );
} else {
$post = get_adjacent_post( $in_same_cat, $excluded_categories, $previous, 'product_cat' );
}
if ( $previous ) {
$label = 'prev';
} else {
$label = 'next';
Arguments
/var
/www
/vhosts
/confeuropacademy.org
/httpdocs
/wp-includes
/class-wp-hook.php
$nesting_level = $this->nesting_level++;
$this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
$num_args = count( $args );
do {
$this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
$priority = $this->current_priority[ $nesting_level ];
foreach ( $this->callbacks[ $priority ] as $the_ ) {
if ( ! $this->doing_action ) {
$args[0] = $value;
}
// Avoid the array_slice() if possible.
if ( 0 == $the_['accepted_args'] ) {
$value = call_user_func( $the_['function'] );
} elseif ( $the_['accepted_args'] >= $num_args ) {
$value = call_user_func_array( $the_['function'], $args );
} else {
$value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int) $the_['accepted_args'] ) );
}
}
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
unset( $this->iterations[ $nesting_level ] );
unset( $this->current_priority[ $nesting_level ] );
$this->nesting_level--;
return $value;
}
/**
* Calls the callback functions that have been added to an action hook.
*
* @since 4.7.0
*
* @param array $args Parameters to pass to the callback functions.
Arguments
/var
/www
/vhosts
/confeuropacademy.org
/httpdocs
/wp-includes
/class-wp-hook.php
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
unset( $this->iterations[ $nesting_level ] );
unset( $this->current_priority[ $nesting_level ] );
$this->nesting_level--;
return $value;
}
/**
* Calls the callback functions that have been added to an action hook.
*
* @since 4.7.0
*
* @param array $args Parameters to pass to the callback functions.
*/
public function do_action( $args ) {
$this->doing_action = true;
$this->apply_filters( '', $args );
// If there are recursive calls to the current action, we haven't finished it until we get to the last one.
if ( ! $this->nesting_level ) {
$this->doing_action = false;
}
}
/**
* Processes the functions hooked into the 'all' hook.
*
* @since 4.7.0
*
* @param array $args Arguments to pass to the hook callbacks. Passed by reference.
*/
public function do_all_hook( &$args ) {
$nesting_level = $this->nesting_level++;
$this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
do {
$priority = current( $this->iterations[ $nesting_level ] );
Arguments
/var
/www
/vhosts
/confeuropacademy.org
/httpdocs
/wp-includes
/plugin.php
if ( ! isset( $wp_filter[ $hook_name ] ) ) {
if ( isset( $wp_filter['all'] ) ) {
array_pop( $wp_current_filter );
}
return;
}
if ( ! isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $hook_name;
}
if ( empty( $arg ) ) {
$arg[] = '';
} elseif ( is_array( $arg[0] ) && 1 === count( $arg[0] ) && isset( $arg[0][0] ) && is_object( $arg[0][0] ) ) {
// Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
$arg[0] = $arg[0][0];
}
$wp_filter[ $hook_name ]->do_action( $arg );
array_pop( $wp_current_filter );
}
/**
* Calls the callback functions that have been added to an action hook, specifying arguments in an array.
*
* @since 2.1.0
*
* @see do_action() This function is identical, but the arguments passed to the
* functions hooked to `$hook_name` are supplied using an array.
*
* @global WP_Hook[] $wp_filter Stores all of the filters and actions.
* @global int[] $wp_actions Stores the number of times each action was triggered.
* @global string[] $wp_current_filter Stores the list of current filters with the current one last.
*
* @param string $hook_name The name of the action to be executed.
* @param array $args The arguments supplied to the functions hooked to `$hook_name`.
*/
function do_action_ref_array( $hook_name, $args ) {
Arguments
/var
/www
/vhosts
/confeuropacademy.org
/httpdocs
/wp-content
/themes
/porto
/woocommerce
/content-product.php
<div class="product-content">
<?php do_action( 'porto_woocommerce_before_shop_loop_item_title' ); ?>
<?php
/**
* Hook: woocommerce_shop_loop_item_title.
*
* @hooked woocommerce_template_loop_product_title - 10
*/
do_action( 'woocommerce_shop_loop_item_title' );
?>
<?php
/**
* Hook: woocommerce_after_shop_loop_item_title.
*
* @hooked woocommerce_template_loop_rating - 5
* @hooked woocommerce_template_loop_price - 10
*/
do_action( 'woocommerce_after_shop_loop_item_title' );
?>
<?php
/**
* Hook: woocommerce_after_shop_loop_item.
*
* @hooked woocommerce_template_loop_product_link_close - 5 : removed
* @hooked woocommerce_template_loop_add_to_cart - 10
*/
do_action( 'woocommerce_after_shop_loop_item' );
?>
</div>
</div>
</li>
Arguments
"woocommerce_after_shop_loop_item_title"
/var
/www
/vhosts
/confeuropacademy.org
/httpdocs
/wp-includes
/template.php
if ( isset( $s ) ) {
$s = esc_attr( $s );
}
/**
* Fires before a template file is loaded.
*
* @since 6.1.0
*
* @param string $_template_file The full path to the template file.
* @param bool $require_once Whether to require_once or require.
* @param array $args Additional arguments passed to the template.
*/
do_action( 'wp_before_load_template', $_template_file, $require_once, $args );
if ( $require_once ) {
require_once $_template_file;
} else {
require $_template_file;
}
/**
* Fires after a template file is loaded.
*
* @since 6.1.0
*
* @param string $_template_file The full path to the template file.
* @param bool $require_once Whether to require_once or require.
* @param array $args Additional arguments passed to the template.
*/
do_action( 'wp_after_load_template', $_template_file, $require_once, $args );
}
Arguments
"/var/www/vhosts/confeuropacademy.org/httpdocs/wp-content/themes/porto/woocommerce/content-product.php"
/var
/www
/vhosts
/confeuropacademy.org
/httpdocs
/wp-content
/plugins
/woocommerce
/includes
/wc-core-functions.php
"{$slug}.php",
WC()->template_path() . "{$slug}.php",
)
);
}
// Don't cache the absolute path so that it can be shared between web servers with different paths.
$cache_path = wc_tokenize_path( $template, wc_get_path_define_tokens() );
wc_set_template_cache( $cache_key, $cache_path );
} else {
// Make sure that the absolute path to the template is resolved.
$template = wc_untokenize_path( $template, wc_get_path_define_tokens() );
}
// Allow 3rd party plugins to filter template file from their plugin.
$template = apply_filters( 'wc_get_template_part', $template, $slug, $name );
if ( $template ) {
load_template( $template, false );
}
}
/**
* Get other templates (e.g. product attributes) passing attributes and including the file.
*
* @param string $template_name Template name.
* @param array $args Arguments. (default: array).
* @param string $template_path Template path. (default: '').
* @param string $default_path Default path. (default: '').
*/
function wc_get_template( $template_name, $args = array(), $template_path = '', $default_path = '' ) {
$cache_key = sanitize_key( implode( '-', array( 'template', $template_name, $template_path, $default_path, Constants::get_constant( 'WC_VERSION' ) ) ) );
$template = (string) wp_cache_get( $cache_key, 'woocommerce' );
if ( ! $template ) {
$template = wc_locate_template( $template_name, $template_path, $default_path );
// Don't cache the absolute path so that it can be shared between web servers with different paths.
$cache_path = wc_tokenize_path( $template, wc_get_path_define_tokens() );
Arguments
"/var/www/vhosts/confeuropacademy.org/httpdocs/wp-content/themes/porto/woocommerce/content-product.php"
false
/var
/www
/vhosts
/confeuropacademy.org
/httpdocs
/wp-content
/themes
/porto
/woocommerce
/archive-product-content.php
}
}
}
ob_start();
echo woocommerce_maybe_show_product_subcategories();
$products_count = 0;
}
?>
<?php
if ( ! function_exists( 'wc_get_loop_prop' ) || wc_get_loop_prop( 'total' ) ) {
while ( have_posts() ) {
the_post();
/**
* Hook: woocommerce_shop_loop.
*/
do_action( 'woocommerce_shop_loop' );
wc_get_template_part( 'content', 'product' );
if ( $skeleton_lazyload ) {
$products_count++;
}
}
}
if ( $skeleton_lazyload ) {
$archive_content = ob_get_clean();
echo '<script type="text/template">' . json_encode( $archive_content ) . '</script>';
}
woocommerce_product_loop_end();
if ( $skeleton_lazyload ) {
if ( $products_count < 1 ) {
global $porto_products_cols_lg;
$products_count = $porto_products_cols_lg;
}
echo porto_filter_output( $skeleton_body_start );
for ( $i = 0; $i < $products_count; $i++ ) {
echo '<li class="' . esc_attr( $sp_class ) . '"></li>';
}
woocommerce_product_loop_end();
Arguments
/var
/www
/vhosts
/confeuropacademy.org
/httpdocs
/wp-includes
/template.php
if ( isset( $s ) ) {
$s = esc_attr( $s );
}
/**
* Fires before a template file is loaded.
*
* @since 6.1.0
*
* @param string $_template_file The full path to the template file.
* @param bool $require_once Whether to require_once or require.
* @param array $args Additional arguments passed to the template.
*/
do_action( 'wp_before_load_template', $_template_file, $require_once, $args );
if ( $require_once ) {
require_once $_template_file;
} else {
require $_template_file;
}
/**
* Fires after a template file is loaded.
*
* @since 6.1.0
*
* @param string $_template_file The full path to the template file.
* @param bool $require_once Whether to require_once or require.
* @param array $args Additional arguments passed to the template.
*/
do_action( 'wp_after_load_template', $_template_file, $require_once, $args );
}
Arguments
"/var/www/vhosts/confeuropacademy.org/httpdocs/wp-content/themes/porto/woocommerce/archive-product-content.php"
/var
/www
/vhosts
/confeuropacademy.org
/httpdocs
/wp-content
/plugins
/woocommerce
/includes
/wc-core-functions.php
"{$slug}.php",
WC()->template_path() . "{$slug}.php",
)
);
}
// Don't cache the absolute path so that it can be shared between web servers with different paths.
$cache_path = wc_tokenize_path( $template, wc_get_path_define_tokens() );
wc_set_template_cache( $cache_key, $cache_path );
} else {
// Make sure that the absolute path to the template is resolved.
$template = wc_untokenize_path( $template, wc_get_path_define_tokens() );
}
// Allow 3rd party plugins to filter template file from their plugin.
$template = apply_filters( 'wc_get_template_part', $template, $slug, $name );
if ( $template ) {
load_template( $template, false );
}
}
/**
* Get other templates (e.g. product attributes) passing attributes and including the file.
*
* @param string $template_name Template name.
* @param array $args Arguments. (default: array).
* @param string $template_path Template path. (default: '').
* @param string $default_path Default path. (default: '').
*/
function wc_get_template( $template_name, $args = array(), $template_path = '', $default_path = '' ) {
$cache_key = sanitize_key( implode( '-', array( 'template', $template_name, $template_path, $default_path, Constants::get_constant( 'WC_VERSION' ) ) ) );
$template = (string) wp_cache_get( $cache_key, 'woocommerce' );
if ( ! $template ) {
$template = wc_locate_template( $template_name, $template_path, $default_path );
// Don't cache the absolute path so that it can be shared between web servers with different paths.
$cache_path = wc_tokenize_path( $template, wc_get_path_define_tokens() );
Arguments
"/var/www/vhosts/confeuropacademy.org/httpdocs/wp-content/themes/porto/woocommerce/archive-product-content.php"
false
/var
/www
/vhosts
/confeuropacademy.org
/httpdocs
/wp-content
/themes
/porto
/woocommerce
/archive-product.php
<?php
/**
* The Template for displaying product archives, including the main shop page which is a post type archive
*
* @version 3.4.0
*/
defined( 'ABSPATH' ) || exit;
$load_posts_only = porto_is_ajax() && isset( $_GET['load_posts_only'] );
if ( ! $load_posts_only ) {
get_header( 'shop' );
}
?>
<?php wc_get_template_part( 'archive-product-content' ); ?>
<?php
if ( ! $load_posts_only ) {
get_footer( 'shop' );
}
Arguments
"archive-product-content"
/var
/www
/vhosts
/confeuropacademy.org
/httpdocs
/wp-content
/plugins
/woocommerce
/includes
/wc-core-functions.php
'template_path' => $template_path,
'located' => $template,
'args' => $args,
);
if ( ! empty( $args ) && is_array( $args ) ) {
if ( isset( $args['action_args'] ) ) {
wc_doing_it_wrong(
__FUNCTION__,
__( 'action_args should not be overwritten when calling wc_get_template.', 'woocommerce' ),
'3.6.0'
);
unset( $args['action_args'] );
}
extract( $args ); // @codingStandardsIgnoreLine
}
do_action( 'woocommerce_before_template_part', $action_args['template_name'], $action_args['template_path'], $action_args['located'], $action_args['args'] );
include $action_args['located'];
do_action( 'woocommerce_after_template_part', $action_args['template_name'], $action_args['template_path'], $action_args['located'], $action_args['args'] );
}
/**
* Like wc_get_template, but returns the HTML instead of outputting.
*
* @see wc_get_template
* @since 2.5.0
* @param string $template_name Template name.
* @param array $args Arguments. (default: array).
* @param string $template_path Template path. (default: '').
* @param string $default_path Default path. (default: '').
*
* @return string
*/
function wc_get_template_html( $template_name, $args = array(), $template_path = '', $default_path = '' ) {
ob_start();
wc_get_template( $template_name, $args, $template_path, $default_path );
return ob_get_clean();
Arguments
"/var/www/vhosts/confeuropacademy.org/httpdocs/wp-content/themes/porto/woocommerce/archive-product.php"
/var
/www
/vhosts
/confeuropacademy.org
/httpdocs
/wp-content
/plugins
/woocommerce
/templates
/taxonomy-product-tag.php
* The Template for displaying products in a product tag. Simply includes the archive template
*
* This template can be overridden by copying it to yourtheme/woocommerce/taxonomy-product-tag.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
* the readme will list any important changes.
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 4.7.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
wc_get_template( 'archive-product.php' );
Arguments
/var
/www
/vhosts
/confeuropacademy.org
/httpdocs
/wp-includes
/template-loader.php
}
break;
}
}
if ( ! $template ) {
$template = get_index_template();
}
/**
* Filters the path of the current template before including it.
*
* @since 3.0.0
*
* @param string $template The path of the template to include.
*/
$template = apply_filters( 'template_include', $template );
if ( $template ) {
include $template;
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
wp_die( $theme->errors() );
}
}
return;
}
Arguments
"/var/www/vhosts/confeuropacademy.org/httpdocs/wp-content/plugins/woocommerce/templates/taxonomy-product-tag.php"
/var
/www
/vhosts
/confeuropacademy.org
/httpdocs
/wp-blog-header.php
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/
if ( ! isset( $wp_did_header ) ) {
$wp_did_header = true;
// Load the WordPress library.
require_once __DIR__ . '/wp-load.php';
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
Arguments
"/var/www/vhosts/confeuropacademy.org/httpdocs/wp-includes/template-loader.php"
/var
/www
/vhosts
/confeuropacademy.org
/httpdocs
/index.php
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
Arguments
"/var/www/vhosts/confeuropacademy.org/httpdocs/wp-blog-header.php"