• Resolved designemesis

    (@designemesis)


    Hey Greg,

    Is there an easy way to remove the post content field in the wp-admin backend?

    The ads won’t have any content.. I only need publish, categories, gallery, author and additional info.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    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;
    }
    
    Thread Starter designemesis

    (@designemesis)

    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

    Plugin Author Greg Winiarski

    (@gwin)

    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/

    Thread Starter designemesis

    (@designemesis)

    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

    Plugin Author Greg Winiarski

    (@gwin)

    Hi, ohh i see, as far as i know WordPress will not really allow doing that i am afraid.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove post content in wp-admin’ is closed to new replies.