iamwpuser
Forum Replies Created
-
class Gateway extends WC_Payment_Gateway
{
public $id;
public $icon;
public $method_title;
public $method_description;
public $has_fields;
public $title;
public $description;
public $instructions;
public $order_stat;
/**
* Init payment gateway
*
* @param int $id
*
* @version 1.6.0
* @since 1.0.0
*/
public function __construct(int $id)
{
$this->id = Functions::gateway_id($id);
$thumbId = get_post_thumbnail_id($id);
if ($thumbId) {
$this->icon = wp_get_attachment_image_url($thumbId, 'full');
}
$this->method_title = get_post_field('post_title', $id);
$this->method_description = get_post_meta($id, 'woocg-desciption', true); // ignore typo
$this->init_form_fields();
$this->init_settings();
// Define user set variables
$this->has_fields = $this->get_option('note') == 'yes';
$this->title = $this->get_option('title');
$this->description = $this->get_option('description');
$this->instructions = $this->get_option('instructions');
// append prefix if not present for compatibility with 1.0.7
$this->order_stat = Functions::prefix_order_status($this->get_option('order_stat'));
$this->register_hooks();
}maybe this will help
Forum: Plugins
In reply to: [Custom Payment Gateways for WooCommerce] Plugin compatibility with Polylangplease make this plugin compatible with Polylang for WooCommerce
Archives always disabled, thank you
- This reply was modified 1 year, 6 months ago by iamwpuser.
https://cannabis.seeds.lol/robots.txt
I use the free version of the yoast seo plugin
this
function remove_locale_and_alternate_presenters( $presenters ) {
return array_filter( $presenters, function( $presenter ) {
// Удаляем Locale_Presenter и Locale_Alternate_Presenter
return ! ( $presenter instanceof Yoast\WP\SEO\Presenters\Open_Graph\Locale_Presenter ||
$presenter instanceof Yoast\WP\SEO\Presenters\Open_Graph\Locale_Alternate_Presenter );
});
}add_filter( ‘wpseo_frontend_presenters’, ‘remove_locale_and_alternate_presenters’ );
and this
function remove_locale_and_alternate_presenters( $presenters ) {
return array_filter( $presenters, function( $presenter ) {
// Удаляем Locale_Presenter и Locale_Alternate_Presenter
return ! ( $presenter instanceof Yoast\WP\SEO\Presenters\Open_Graph\Locale_Presenter ||
$presenter instanceof Yoast\WP\SEO\Presenters\Open_Graph\Locale_Alternate_Presenter );
});
}add_filter( ‘wpseo_frontend_presenters’, ‘remove_locale_and_alternate_presenters’ );
and this
function remove_yoast_og_locale_alternate( $presenters ) {
return array_filter( $presenters, function( $presenter ) {
// Убираем не только Locale_Presenter, но и Locale_Alternate_Presenter
if ( $presenter instanceof Yoast\WP\SEO\Presenters\Open_Graph\Locale_Alternate_Presenter ) {
return false;
}
return true;
});
}add_filter( ‘wpseo_frontend_presenters’, ‘remove_yoast_og_locale_alternate’ );
NOT HELPS, DO YOU KNOW HOW?
ok,ok, I have deleted <meta property=”og:locale” content=”ru_RU” class=”yoast-seo-meta-tag” /> with
function remove_locale_presenter( $presenters ) {
return array_filter( $presenters, function( $presenter ) {
// Удаляем Locale_Presenter, чтобы он не выводил
return ! ( $presenter instanceof Yoast\WP\SEO\Presenters\Open_Graph\Locale_Presenter );
});
}add_filter( ‘wpseo_frontend_presenters’, ‘remove_locale_presenter’ );
But I can not delete this string in the same way
<meta property="og:locale:alternate" content="ru_RU" />HOW TO DELETE THIS og:locale:alternate STRING?
- This reply was modified 1 year, 8 months ago by iamwpuser.
also I have tried this:
add_filter( ‘wpseo_locale’, function( $locale ) {
// Убираем вывод тега
return ”;
} );and this:
add_action( ‘wpseo_head’, function() {
// Удаляем вывод тега
ob_start(function($output){
return preg_replace(‘/]+>/i’, ”, $output);
});
}, 9999 );Not helps, can anybody help?
I can use only ru or ru-ua, ru-ru hurts my site’s search engine visibility!
HOW CAN I DELETE THIS STRING
<meta property="og:locale" content="ru_RU" class="yoast-seo-meta-tag" />???????????????????????????????????????????????????????????
So if I can not edite ru-ru, I have to delite this string <meta property=”og:locale” content=”ru_RU” class=”yoast-seo-meta-tag” />
Some differences
<link rel="alternate" href="https://site.com" hreflang="ru-ua" />
https://developers.google.com/search/docs/specialty/international/localized-versions?hl=ru#language-codes
https://www.aleydasolis.com/english/international-seo-tools/hreflang-tags-generator/Forum: Plugins
In reply to: [Custom Payment Gateways for WooCommerce] Plugin compatibility with PolylangI had to disable your sitemap file because the pages that I added several months ago are still not in the index
your sitemap is a piece of shit, more than two years ago file /sitemap_index.xml/ was added to google search console, zero links found in sitemap by google, but I have 1000 pages in total, in 15 years I never had a problem with my sitemap until I installed your plugin!
And the main thing is that you didn’t forget to insert your fucking link on every page of my site
👍thank you