Commit a9dfe653 authored by Thomas Parisot's avatar Thomas Parisot
Browse files

Liste l'annuaire dans l'API WordPress

parent 2f39e560
......@@ -3,6 +3,15 @@
if ( ! isset( $content_width ) ) $content_width = 1080;
function add_types_to_api( $args, $post_type ) {
if ( 'w2dc_listing' === $post_type ) {
$args['show_in_rest'] = true;
}
return $args;
}
add_filter('register_post_type_args', 'add_types_to_api', 10, 2 );
function et_setup_theme() {
global $themename, $shortname, $et_store_options_in_one_row, $default_colorscheme;
$themename = 'Divi';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment