forgot to call register function
This commit is contained in:
@@ -53,36 +53,6 @@ class Partnerexpo_Core_Public {
|
||||
return ob_get_clean();
|
||||
}
|
||||
|
||||
/**
|
||||
* Register the stylesheets for the public-facing side of the site.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function enqueue_styles() {
|
||||
wp_register_style(
|
||||
$this->plugin_name . '-searchbox-css',
|
||||
plugin_dir_url( __FILE__ ) . 'css/searchbox.css',
|
||||
[],
|
||||
$this->version,
|
||||
'all'
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Register the JavaScript for the public-facing side of the site.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function enqueue_scripts() {
|
||||
wp_register_script(
|
||||
$this->plugin_name . '-searchbox-js',
|
||||
plugin_dir_url( __FILE__ ) . 'js/searchbox.js',
|
||||
[],
|
||||
$this->version,
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
public function register_endpoint() {
|
||||
register_rest_route('pexpo/v1', '/query', [
|
||||
'methods' => 'GET',
|
||||
@@ -116,4 +86,35 @@ class Partnerexpo_Core_Public {
|
||||
return rest_ensure_response($posts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Register the stylesheets for the public-facing side of the site.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function enqueue_styles() {
|
||||
wp_register_style(
|
||||
$this->plugin_name . '-searchbox-css',
|
||||
plugin_dir_url( __FILE__ ) . 'css/searchbox.css',
|
||||
[],
|
||||
$this->version,
|
||||
'all'
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Register the JavaScript for the public-facing side of the site.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function enqueue_scripts() {
|
||||
wp_register_script(
|
||||
$this->plugin_name . '-searchbox-js',
|
||||
plugin_dir_url( __FILE__ ) . 'js/searchbox.js',
|
||||
[],
|
||||
$this->version,
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user