PHP Help for WP plugin please...

by 6 replies
7
Hello all,

I am hoping someone can help me. I am putting together a WordPress plugin and I have a question.

In a standard WP install, the code installs 1 pinging site automatically.

It is in under Settings > Writing.

The site that comes automatically with any install is rpc.pingomatic.com

I would like to know what the code would be if I wanted to:

install my plugin and have the plugin automatically add a list of pinging sites to this list, whether there is only the one from the original install

OR

add my list to the list of sites the user may have already added.

Thank you in advance for any help or suggestions.

Greg
#programming #list #ping #plugin
  • wow, I am actually very surprised. I usually get some sort of responses by now when I have posed a problem.

    Greg
  • Off the top of my head I can't tell you how to do it.

    However, have a dig through the WP Codex and see if there's any hooks or actions that are able to slip data into the field you want.

    If that fails to work, another option would be to have a dig through the WP backend database and have your plugin manually insert an array of sites into the correct sql field.
    • [ 1 ] Thanks
  • thanks mystline,

    I appreciate the direction to go in. I'll start there.

    Greg
  • Hi Greg

    All your plugin needs to do is update the "ping_sites" field in the wp_options table in the WordPress database. WordPress has an "update_option" command for exactly that purpose.

    Bill
    • [ 1 ] Thanks
  • if you have serious porbelm u can hire me i can help u
  • Thanks Bill -

    That is awesome! That helps out a lot.

    Greg

Next Topics on Trending Feed