• Hi,

    Why do i get PHP Notice: Use of undefined constant MYSITE_ADMIN_TEXTDOMAIN on register_post_type() ?

    is this something supposed to be defined by WordPress core or am i missing something?

    I have used the register_post_type() sample code from WP CODEX.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    @sgurygf, Try deactivating all of your plugins to explore whether any could be responsible. If none are, keep all plugins deactivated and switch to the Twenty Fifteen/ Fourteen theme to see whether it could an issue with your theme.

    Thread Starter SGURYGF

    (@sgurygf)

    Thanks for your reply.

    Answering my question though would better help me identify the problem. Is that constant supposed to be defined by WP core? or the theme?

    Thanks

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I’m not comfortable giving out a definitive answer for that, but you can find the answer by carrying out the debugging steps that I have provided.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Undefined MYSITE_ADMIN_TEXTDOMAIN’ is closed to new replies.