pingback returns faultCode 0, no message

For some reason, the default filter attached to pingback errors, will not send an error message unless the error code is 48. From wp-includes/commment.php: function xmlrpc_pingback_error( $ixr_error ) { if ( $ixr_error->code === 48 ) return $ixr_error; return new IXR_Error( 0, ” ); }

How to show Disqus comments and pingbacks?

The plugin you mentioned is only a single function so it shouldn’t be too heavy on your setup. It uses the comments_template filter to inject the pingbacks/trackbacks list into your page. But the plugin is using an extra manual SQL query and the template is constructed by hand, so there’s a room for improvements/simplifications. A … Read more

Altering the pingback functionality

Actually, it turned out quite easy, as the post can be retrieved from the slug: // get the url of the reffering post $ping_slug = $comment->comment_author_url; // keep just the slug $ping_slug = trim(parse_url($ping_slug, PHP_URL_PATH), “https://wordpress.stackexchange.com/”); // get the post from the slug $ping_post = get_page_by_path($ping_slug, OBJECT, ‘post’); // find the post author data $ping_author … Read more

How to remove pingback from head?

Here’s my improvement on it with less code for the same results: add_action( ‘plugins_loaded’, ‘wpse_158700_buffer’ ); function wpse_158700_buffer() { # Enable output buffering ob_start( ‘wpse_158700_pingback_url’ ); } function wpse_158700_pingback_url( $buffer ) { # If in the admin panel, don’t run if ( is_admin() && ( ! defined( ‘DOING_AJAX’ ) || ! DOING_AJAX ) ) { … Read more

Disabling pingback and trackback notifications

To disable pingback and trackbacks, add this code to your functions.php file in your child theme: add_action( ‘pre_ping’, ‘wpse_190346_internal_pingbacks’ ); add_filter( ‘wp_headers’, ‘wpse_190346_x_pingback’); add_filter( ‘bloginfo_url’, ‘wpse_190346_pingback_url’) ; add_filter( ‘bloginfo’, ‘wpse_190346_pingback_url’) ; add_filter( ‘xmlrpc_enabled’, ‘__return_false’ ); add_filter( ‘xmlrpc_methods’, ‘wpse_190346_xmlrpc_methods’ ); function wpse_190346_internal_pingbacks( &$links ) { // Disable internal pingbacks foreach ( $links as $l => $link … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)