Updating shortlinks from staging [closed]

There are 2 solutions to your problem: You can go to the Jetpack menu in your dashboard and disconnect, then reconnect to WordPress.com. It will force an update of your Jetpack settings. You can contact the Jetpack support team here: http://jetpack.me/contact-support/ They can update your Jetpack settings for you.

How to allow users to write jetpack custom post types? [closed]

No need to use Jetpack Post Types feature for that. Just use the following code to enable Jetpack Plublicize for any custom post type of your theme/plugin. Place it in functions.php: /** * Enable Jetpack Publicize Support for CPT * ————————————————————————– */ function wpse20150812_jetpack_publicize_support() { add_post_type_support( ‘mycpt’, ‘publicize’ ); } add_action(‘init’, ‘wpse20150812_jetpack_publicize_support’); Replace the mycpt … Read more

Jetpack Infinite Scroll – changing number of posts

Found the code that works here: https://themeshaper.com/2013/10/08/how-to-override-jetpack-infinite-scroll-settings-in-a-child-theme/ /* * Change the posts_per_page Infinite Scroll setting from 10 to 20 */ function my_theme_infinite_scroll_settings( $args ) { if ( is_array( $args ) ) $args[‘posts_per_page’] = 20; return $args; } add_filter( ‘infinite_scroll_settings’, ‘my_theme_infinite_scroll_settings’ );

Hiding Jetpack Ads from users who are signed in?

Your code should be the good one. You just have to use is_user_logged_in() into a hook instead of calling it directly, and probably to early. function wp_se_339916() { if ( is_user_logged_in() { add_filter( ‘wordads_excerpt_disable’, ‘__return_true’ ); add_filter( ‘wordads_content_disable’, ‘__return_true’ ); add_filter( ‘wordads_inpost_disable’, ‘__return_true’ ); add_filter( ‘wordads_header_disable’, ‘__return_true’ ); } } add_action( ‘template_redirect’, ‘wp_se_339916’ ); Using … Read more

How do i import email addresses into WordPress.com subscriptions? [closed]

WordPress.com Jetpack subscriptions are not hosted on your site, they’re hosted on the WordPress.com servers. So you can’t add directly to the database. However, if you take a look at the Jetpack plugin code, it outlines the XML-RPC calls used to interface with WordPress.com and add subscribers. So you could build your own importer … … Read more

Hide Jetpack for Contributor [closed]

This code will do the trick. Create a file, jetpack-hide.php (or another name of your choosing) and upload it to wp-content/mu-plugins (create that directory if it doesn’t exist). add_action( ‘jetpack_admin_menu’, ‘hide_jetpack_from_others’ ); function hide_jetpack_from_others() { if ( ! current_user_can( ‘administrator’ ) ) { remove_menu_page( ‘jetpack’ ); } } To re-enable JetPack for all users, simply … Read more