PHP Help for WP plugin please...

by Greg D
6 replies
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
#list #ping #plugin
  • Profile picture of the author Greg D
    wow, I am actually very surprised. I usually get some sort of responses by now when I have posed a problem.

    Greg
    Signature
    Premium Wordpress Directory Theme
    No Other Directory Theme Compares
    Premium Wordpress Adspace Plugin
    All On Site Advertising On Autopilot
    {{ DiscussionBoard.errors[2878684].message }}
  • Profile picture of the author mystline
    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.
    {{ DiscussionBoard.errors[2878702].message }}
  • Profile picture of the author Greg D
    thanks mystline,

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

    Greg
    Signature
    Premium Wordpress Directory Theme
    No Other Directory Theme Compares
    Premium Wordpress Adspace Plugin
    All On Site Advertising On Autopilot
    {{ DiscussionBoard.errors[2878744].message }}
  • Profile picture of the author mywebwork
    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
    {{ DiscussionBoard.errors[2881299].message }}
  • Profile picture of the author varun089
    if you have serious porbelm u can hire me i can help u
    {{ DiscussionBoard.errors[2881316].message }}
  • Profile picture of the author Greg D
    Thanks Bill -

    That is awesome! That helps out a lot.

    Greg
    Signature
    Premium Wordpress Directory Theme
    No Other Directory Theme Compares
    Premium Wordpress Adspace Plugin
    All On Site Advertising On Autopilot
    {{ DiscussionBoard.errors[2883407].message }}

Trending Topics