PHP code for WordPress
Example of Answer:
by Array(
by Array(
“lang” = “uk”
“Title” = “Telephones”
“category_id” = 123
)
and the
-
Зараз зроблю, аж самому стало цікаво :)
Можна тестувати. Локально працює.
function get_terms_by_lang( $lang = '' ) {
global $sitepress;
$current_lang = apply_filters( 'wpml_current_language', null );
if ( $lang ) {
… // Switch the language to ... before the get_terms
$sitepress->switch_lang( $lang );
}
$data_terms = [];
$terms = get_terms( [
'taxonomy' => 'product_cat',
'hide_empty' => 'false',
] );
foreach ( $terms as $term ) {
$data_terms[] = [
'lang' => $lang,
'title' => $term->name,
'category_id' => $term->term_id,
];
}
if ( $lang ) {
// Check if the terms are expected and then switch back the language
$sitepress->switch_lang( $current_lang );
}
return $data_terms;
}
-
2662 56 0 Good morning, you are interested in your project, let's discuss details in the chat)
-
4820 66 0 Good day Andrei! I can implement this function. Let’s discuss in private.
-
1727 18 1 Hello, I can download the required code in personal messages. Write to LS
-
900 10 1 Good day, ready to fulfill your task, I will be happy to cooperate with you.
-
1012 25 0 You are ready to start immediately, please.
• • • • • •
-
6285 198 0 Ready to start work.
Let’s discuss the details.
Portfolio: https://riashentsev.com.ua/?flh=rate#portfolio
-
879 28 1 Hello to you! Just a list of all categories of a specific language?
Does the response need to be indicated? (The main category -> subcategories)
Current freelance projects in the category PHP
Parser expireddomains.net
113 USD
A parser is needed for expireddomains.net. You need to log in to the site first; the problem is that it blocks the IP when trying to parse data. You need to parse thematic domains based on a list of keywords. If you are not confident in your abilities, please do not write. PHP, Web Programming ∙ 1 day 20 hours back ∙ 48 proposals |
Integration of payment service with Sales Force
70 USD
There is a payment system widget on the site that needs to be integrated with Salesforce so that all required parameters are visible on the Salesforce side. It needs to be done in such a way that all payments and subscriptions are controlled through Salesforce. PHP, Web Programming ∙ 2 days back ∙ 40 proposals |
Intercom systems
90 USD
We are looking for an experienced BAS (1C 8.3) programmer to refine a custom configuration for the business processes of our company. What is needed: — Study the current custom BAS 8.3 configuration — Refine and adjust it to our processes — Accounting: clients, contracts,… PHP, Databases & SQL ∙ 4 days 23 hours back ∙ 13 proposals |
Exporting goods from 1C to prom.uaCreate and configure an API export module for products from 1C to the cabinet and to the site prom.ua, rozetka, or another marketplace of your choice, including stock, names, images from 1C, prices, automatic export, automatic updates. PHP, Databases & SQL ∙ 5 days 14 hours back ∙ 21 proposals |
Fix the WPML translation issueThe website has product translation set up through the Advanced Editor. The translations in the editor are correct, but the incorrect text is displayed on the site. If you go to the page editor (in the language we are translating to), that is exactly the text indicated (in… PHP, Web Programming ∙ 6 days 15 hours back ∙ 37 proposals |