WordPress Pages into Sections edit.php PHP hack

I need this to be done with PHP so that the user cannot set the Parent. I asked this over on WP.SE and got a promising answer: Creating new page with pre-defined parent page I haven’t got around to testing it yet, though, as the project is on hold. And I need to know how … Read more

My AJAX API plugin isn’t working

There is no PHP function alert, that’s why your function throws an error and doesn’t proceed with the rest of your code. You have to return something from the LogHit_callback function using return (or echo it with echo) and then alert it with JavaScript, that is add following code to your post function: jQuery.post( ‘http://www.test.com/wp-admin/admin-ajax.php’, … Read more

My first plugin doesn’t save the data in options

The problem is your validate function RSP_options_validate(). This function always a empty string. Check your conditional statement with preg_match. If you test your source without this functions, it works. register_setting( ‘RSP_options_group’, ‘RSP_options’, ‘RSP_options_validate’ ); to register_setting( ‘RSP_options_group’, ‘RSP_options’ );