Automatization for automatization

WordPress has no macros like that but it can be done. If the plugin is already installed, you can Network Activate it so it will be available on any blog in the network. As for the page with title, you’ll need to create or source a plugin to do that as it will need to … Read more

Hook into install email

If you see the code, there is no hook to do that. But you can create your own function and remove the part that you don’t need like this function custom_wp_install( $blog_title, $user_name, $user_email, $public, $deprecated = ”, $user_password = ”, $language=”” ) { if ( !empty( $deprecated ) ) _deprecated_argument( __FUNCTION__, ‘2.6’ ); wp_check_mysql_version(); … Read more

get_option return incorrect values

You can just use the get_option() function like this: <?php $main_dashboard_check = get_option( ‘main_dashboard_check’ ); var_dump( $main_dashboard_check ); /* outputs false if the value does not exist */ $main_dashboard_check = get_option( ‘main_dashboard_check’, ‘default_value’ ); var_dump( $main_dashboard_check ); /* outputs ‘default_value’ if the value does not exist */ ?>

Plugin Post 2 Posts: How to list most connected posts?

I have done this way: // Find connected pages (for all posts) p2p_type( ‘actors_movies’ )->each_connected( $wp_query ); Now we have a $connected property attached to every post on the $wp_query, that is an array of posts connected by actors_movies. $actors = array(); while (have_posts()) : the_post(); $movies_acted = count($post->connected); if($movies_acted > 0) { $actors[$post->ID] = … Read more