/home/vianto5/heredit.mx/wp-content/plugins/elementor-pro/modules/posts/traits
Edit: /home/vianto5/heredit.mx/wp-content/plugins/elementor-pro/modules/posts/traits/query-note-trait.php (1329B)
documents->get_current() ) {
$id = Utils::get_current_post_id();
} else {
$id = get_the_ID();
}
return 'archive' === get_post_meta( $id, Document::TYPE_META_KEY, true );
}
public function inject_archive_query_note( $placement_id, $condition_id, $widget ) {
$archive_setting_url = admin_url( 'options-reading.php' );
$widget->start_injection( [
'of' => $placement_id,
'at' => 'before',
] );
$widget->add_control(
'archive_query_note',
[
'type' => Controls_Manager::RAW_HTML,
'raw' => sprintf(
/* translators: %s: Settings link. */
esc_html__( 'The amount of items displayed in your Archive is set in your WordPress settings. %s', 'elementor-pro' ),
'
' . esc_html__( 'Take me there', 'elementor-pro' ) . ''
),
'content_classes' => 'elementor-descriptor',
'condition' => [
$condition_id => 'current_query',
],
]
);
$widget->end_injection();
}
}