Hi, you can remove the post content by adding the code below to your theme functions.php file it should remove the post content from wp-admin
add_filter( "adverts_post_type", "my_adverts_post_type", 10, 2 );
function my_adverts_post_type( $args, $type ) {
if( $type !== "advert" ) {
return $args;
}
$args["supports"] = array('title', 'author');
return $args;
}
Thanks Greg, another question on an unrelated topic..
I noticed on the MAL addon there is an option to select the language of the addon.
Is there a way of adding this to the main plugin so you can select the language of the plugin rather than having to change the language in the main WP settings.
Thanks
The language of the plugin you can change by changing language of your WordPress site in wp-admin / Settings / General panel, that is assuming WPAdverts has your a translation for your language, if it does not you would need to create the translation as explained here https://wpadverts.com/documentation/translating-to-your-language/
Hi Greg,
Yes that’s what I’m currently doing. I’m just wondering if there is a way to keep the WP admin in english and the plugin in a different language.
I noticed for MAL I could select the language without affecting the backend so would be quite useful if there is a way to add this functionality to the main plugin ?
Thanks again
Hi, ohh i see, as far as i know WordPress will not really allow doing that i am afraid.