Multisite Plugin – Access options (wp_options) on child sites
Try get_blog_option(). It does not use switch_to_blog(), and so introduces much less overhead. https://codex.wordpress.org/Function_Reference/get_blog_option
Try get_blog_option(). It does not use switch_to_blog(), and so introduces much less overhead. https://codex.wordpress.org/Function_Reference/get_blog_option
Ok, take a look at following plugins, maybe someone could help you: Easy WordPress Donations Awesome Donation System for WordPress PayPal Payment Terminal WordPress However all these plugins are commercial, but you can ask a question to the author about your needs before buying. If you need account there you can register here.
DataBase handling ALWAYS do a proper prepare() when receiving data from the DB. I can’t say it often enough… $galleries = $wpdb->get_results( $wpdb->prepare( ” SELECT t.*, tt.* FROM %s AS t INNER JOIN $wpdb->nggpictures AS tt ON t.gid = tt.galleryid WHERE tt.exclude != 1 GROUP BY tt.galleryid ORDER by tt.galleryid ” ), $wpdb->nggallery ); NextGen… … Read more
This should be easiest way, just add the line to wp-config.php, this will disable plugin and theme editor, both. define(‘DISALLOW_FILE_EDIT’,true); If you want to add codes into theme’s function, the code should work for you. function ra_block_tp_edit( $caps, $cap ) { if($cap == ‘edit_plugins’ ) $caps[] = ‘do_not_allow’; return $caps; } add_filter( ‘map_meta_cap’, ‘ra_block_tp_edit’, 10, … Read more
I found Quick Review Post Access (Figure 1) which does the trick. It’s not perfect; I was hoping for the little circle, but this works just as well, and even better, it links directly to the page with non-drafts filtered out, making it even easier to keep track of and work with incomplete posts. It … Read more
Read the docs for the plugin. You need to use the template files (included with the plugin in the templates folder). You need to and modify the html and php to match your own theme’s template files so you can use them in your own theme and have the pages look like your own theme’s … Read more
Your constant is defined in the “plugins_loaded” action, but you are trying to access it before that action gets to be executed.
If you check the arguments for add_menu_page, you’ll see that the fifth argument is your callback function. And, right now, there’s nothing in the mj_admin function. What you need to do is output your form in that function. <?php function mj_admin(){ ?> <h2>My Settings Page</h2> <form action=”options.php” method=”post”> <?php settings_fields( ‘mj-admin-settings’ ); do_settings_sections(‘mj-admin-settings’); submit_button(); ?> … Read more
I don’t have a plugin to point you to off the top of my head, but my general suggestion is this: Store the relevant plugin settings in a single option, as an array. The crux of the reasoning here is that you’re just adding items to a single array, which is auto-keyed, so you can … Read more
As of WordPress 3.0.0 this action is available at the top of the new user form: user_new_form_tag As of WordPress 3.7.0 this action is called at the end of the form (right before submit button): user_new_form You will however need to intercept when clicking submit to save any specific user information to the user’s meta