replaced comment form for a custom one
This commit is contained in:
@@ -57,12 +57,19 @@ class Partnerexpo_Core_Public {
|
||||
return ob_get_clean();
|
||||
}
|
||||
|
||||
public function comments_shortcode() {
|
||||
public function comments_shortcode($atts) {
|
||||
wp_enqueue_style( $this->plugin_name . '-comments-css' );
|
||||
wp_enqueue_script( $this->plugin_name . '-comments-js' );
|
||||
// wp_enqueue_style( $this->plugin_name . '-multiselect-css' );
|
||||
// wp_enqueue_script( $this->plugin_name . '-multiselect-js' );
|
||||
|
||||
$atts = shortcode_atts( array(
|
||||
'post_id' => get_the_ID(),
|
||||
), $atts );
|
||||
|
||||
// This variable is now scoped and ready for the partial
|
||||
$post_id = intval( $atts['post_id'] );
|
||||
|
||||
ob_start();
|
||||
include plugin_dir_path( __FILE__ ) . 'partials/partnerexpo-core-public-comments.php';
|
||||
return ob_get_clean();
|
||||
|
||||
Reference in New Issue
Block a user