Support » Plugin: WPPizza » change back end WP Pizza name?

Viewing 15 replies - 1 through 15 (of 36 total)
  • Plugin Author ollybach


    in wppizza.php you can change

    define('WPPIZZA_NAME', 'WPPizza');


    define('WPPIZZA_NAME', 'Whatever You Want');

    However, this will not be persistent when you update the plugin.
    i.e you either loose the ability to update or you will have to do the changes everytime the plugin gets updated

    (although I might add a way to do this without the loss of updatability in one of the next updates, no promises though)

    sounds great TY ollybach

    hmm, i did that and refreshed the page and it prompted me saying it installed wppizza and now I cant see any of the shop settings, just the menu page shows in the admin area.

    Plugin Author ollybach


    ehem, what exactly did you do then ? (this behaviour just makes no sense)

    I just went into wppizza.php and changed the name and saved and refreshed the page, it was on the dashboard of a multisite sub site and it looked like it installed the plugin again.

    i checked the db and there is options for wppizza and for the new name I set. but its not displaying any plugin settings or anything now… hmm. shall I rename it back to wppizza and remove the db table for the new name and the options for the new name and see if it realizes the existing wppizza original options?

    I’m still having no luck, now the front end is showing the short codes instead of menu and such. everything got borked some how.

    Plugin Author ollybach


    ah , i did not realize you were on a multisite install (although why that should make any difference i dont know)

    however, if you just did a new site on a multisite, it WILL say – thank you for installing etc. as it – well – just installed it

    I had refreshed the page on the store after I did the name change and thats when it re-installed the plugin with the new prefix in the name apparently. the wppizza tables are still visible in the database but I (backed up first) removed the new tables it created but its still not back to what it was…hmm

    so to answer your question, it did this on a multisite – site that already had wppizza running with products and ingredients etc.

    all the tables and wp_options look fine. not sure why it is not showing me it has got to be some sort of access restrictions bug?

    I tried typing in manually adding wp-admin/edit.php?post_type=wppizza to the end of my url and it says i do not have sufficient permissions to view this page.

    Plugin Author ollybach


    i overlooked one thing when i suggested the above

    if you do that namechange also hardcode

    $this->WP_Widget(false, $name=$this->pluginName, $widget_opts);


    $this->WP_Widget(false, $name=’WPPizza’, $widget_opts);


    what does that do?

    Plugin Author ollybach


    the plugin extends WP_Widget

    and has a name (which is WPPizza strangley enough)

    if you change the defined name, it changes also the widget name, whence your problems……

    so after all it’s probably not such a good idea to hack around in the plugin and set some random variables without really testing it..hope you have a backup …….

    (again, i may do an option to change the name in one of the next updates, but it clearly needs some more careful consideration…read testing.)

Viewing 15 replies - 1 through 15 (of 36 total)
  • The topic ‘change back end WP Pizza name?’ is closed to new replies.