Customizing JetPack Publicize Sharing
Customizing JetPack Publicize Sharing
Customizing JetPack Publicize Sharing
Use the add_meta_boxes action with a very low priority, so: function page_remove_share() { remove_meta_box( ‘sharing_meta’ , ‘page’ , ‘advanced’ ); } add_action( ‘add_meta_boxes’, ‘page_remove_share’, 99 ); I think that should work.
For anyone who may be interested, I think I may have found a solution – this tutorial outlines how to customize comment_form(), Jetpack will simply override the styles set.
Quantcast is coming from the Stats component of JetPack. You can: Disable Jetpack Stats Directly block Quantcast, such as via the DoNotTrack Plugin
I answered my own question. The slash in the URL messes up the API call. However urlencoding the URL will get around it. IE: $context = stream_context_create( $options ); $site = urlencode(“subdomain.example.com/site1″); $response = file_get_contents( ‘https://public-api.wordpress.com/rest/v1/sites/’ . $site .”https://wordpress.stackexchange.com/”, false, $context );
The solution was to make a custom query with a posts_per_page argument to the desired number of posts.
I have now solved point (2), the overlapping posts problem; maybe this will help someone else. I changed wrapper to true in the mytheme_jetpack_setup function in my PHP (so that the new posts are wrapped in their own div) And I changed the jQuery to: $(‘#content’).masonry({ columnWidth: ‘.grid-sizer’, itemSelector: ‘article’, gutter: ‘.gutter-sizer’ }); var infiniteCount … Read more
Well apparently WP CLI was run as root by someone else and caused all the permissions to be overwritten. Normally WP CLI does not run as root automatically. Dreamhost has acknowledged this and restored permissions so I can update things again.
You can typically check the plugin’s source for actions it performs on uninstall (if any). In case of Jetpack its uninstall.php does remove some options, but none of those you mention. It is hard to say what would complete removal be, without making thorough audit of before and after states of the system. It’s pretty … Read more
You made that way more complicated than it needs to be. add_filter( ‘jetpack_open_graph_image_default’, ‘example_change_default_image’ ); function example_change_default_image( $image ) { return ‘https://s0.wp.com/i/blank.jpg’; } Just edit the function to return whatever URL you want.