1,931 questions
-1
votes
1
answer
362
views
Hide the Default Edit button in Wordpress Page and Post types
I a couple of WordPress sites that uses Elementor Page builder. Currently, when I go to Pages, Posts, or custom post types, I see two Edit buttons. One for WordPress editor another for Elementor.
I ...
0
votes
0
answers
70
views
How to display a thumbnail of product variation in custom table? I just make a custom variation table in woocommerce
I created a custom variation table in WooCommerce, and I need to display product variations thumbnails in that custom table.
What is it the right way?
What is the code to create this?
Here is a ...
3
votes
0
answers
190
views
How do you constrain Visual studio Code Snippets to a type/class context?
In my project I use reflection to find and invoke certain (optional) methods, rather than defining an interface which forces the methods to be implemented. This is partly to support parameter ...
1
vote
0
answers
101
views
PHP IDE hint for classes instantiated by __call() function
I am using VSCode and PHP 8.1+. In standard way, we can get hints when we type $myClass->??? and we will get a list of functions within the class.
However, recently I have a class that could ...
1
vote
0
answers
46
views
CSS File doesn't show any snippets suggestions [duplicate]
I created a custom tailwind snippet for .css file and then found out that I have no snippet suggestions in .css file at all.
Don't think it relates to the problem but here is tailwind custom snippet ...
0
votes
1
answer
90
views
How to create a word document icon or button in WORDPRESS, when clicked, a word document whose content is created using php code will be downloaded?
I have a WordPress application with a lot of pages that are created using codes that I wrote in PHP and are inserted into the pages using PHP-code-snippet.
Now I want to create a 'newsletter' (...
-1
votes
1
answer
95
views
Hide last page pagination in wordpress
it is possible in WordPress to delete or hide the last page of the pagination, in order to allow users to continue the search without giving them the possibility of seeing the last page.
And then ...
1
vote
0
answers
57
views
Render README Snippet from Relative Link
Background
I am creating the README.md for my GitHub repo ("MyRepo"), which provides certain VBA functionality. Here I wish to display a code snippet, which the user should paste into their ...
0
votes
0
answers
59
views
locked out from Wordpress with php header location
I have a wordpress site and with a code snippet created a php header location redirect. Now I have locked myself out and can no longer get to the wordpress page. Neither in the frontend nor in the ...
0
votes
1
answer
305
views
Is there a way to define custom functions for C# snippets, or at least get the namespace?
I am modernizing a lot of VB.NET code to CSharp and I need to convert dozens of dialogs to conform with our new MVP standard. I'm trying to write snippets so I can more easily bang out the boiler ...
0
votes
0
answers
538
views
Login without password for Wordpress 6.3
I have snippet below to login on wp-login page without password. I only need to know user login and I don’t need to input anything in password field. This sippet worked fine up to 6.2.2 WP version, ...
0
votes
1
answer
227
views
Is there a way to generate table aliases in TSQL statements using SQL snippets in Azure Data Studio?
In a user snippets the following work,
SELECT * FROM ${1:TableName} as ${2|a,b,c,d,e,f|}
but it only presents you with a list of the 6 letters ( a to f) for an alias like this:
SELECT * FROM ...
0
votes
1
answer
76
views
VS Code suggests a code snippet that is not listed with the "insert snippets" command. Where/how is it defined?
when I type if, there's a snippet suggestion as below:
But I can't find this snippet by insert snippets command:
it shows nothing:
I just wonder why and the content of the if snippet ain't what I ...
0
votes
0
answers
843
views
Elementor Pro Forms Validation for Zipcode
I'm using a simple form using Elementor Pro Forms. I'd like to filter out spam by only allowing zip codes starting with 91 or 92. Is there a code snippet I can add to help me do this?
I found this on ...
1
vote
1
answer
1k
views
Syntax highlighted code in Markdown dropdown
I'm writing a README file for my GitHub repository using Markdown. At one point in the README file, I have C# code that the user may copy-paste. This code is long—54 lines, to be exact—and I don't ...
0
votes
1
answer
72
views
How to create an embed that allows switching between multiple code snippets via a button
I wish to create embeds in notion to manage and share my code snippets.
However, some code snippets serve the same purpose. For example, a sorting algorithm can be written in multiple programming ...
0
votes
1
answer
23
views
What is the difference between List and Collection in Snapi language?
I have two queries in snapi language:
let hello = List.Build(1,2,3) in hello
and
let hello = Collection.Build(1,2,3) in hello
They return the same result.
I run the queries but I don't see any ...
0
votes
0
answers
37
views
Transform Property Name to lowercase
I wrote a snippet for Visual Studio 22 with the following content:
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/...
0
votes
0
answers
72
views
How can I set Minimum & Maximum items quantity per order based on categories Wooccomerce using PHP
I have this issue: I have 4 categories, but I want that users can purchase min & a max of 3 items in a total of 3 of these categories. And, for the other category, they can only add 1 item per ...
0
votes
2
answers
920
views
Why does sysout code snippet stop working in VS code after a few seconds?
I am trying to use Java in VS code. I am having problems with code completion snippets. I have the Language Support for Java(TM) by Red Hat extension installed (along with the whole java extension ...
2
votes
0
answers
193
views
How Can I Make Kate Properly Indent Snippets with Multiple Lines
I enjoy using Kate snippets for quick Python scripts, but I'm having a hard time getting them to properly inherit or detect indentation levels after the first line. Consider the following snippet:
...
0
votes
0
answers
831
views
In Visual Studio 2022, how can I change the null check template?
I frequently apply null checks to my parameters when developing in C# (like any good developer should!).
Because I can be lazy, I'd prefer to let Visual Studio add these for me, which it can.
However, ...
1
vote
1
answer
158
views
Project/Solution Level Code Snippets for Visual Studio
I'm able to create snippets for visual studio in my documents file. But I'd like some snippets to be distributed to the rest of my team via source control, so some way of including a snippet with a ...
0
votes
1
answer
510
views
How can I customize a suffix snippet, replacing the variable in VS Code?
I'm developing my Java project with VS Code when I find some powerful snippets:
suffix code snippets
After I type a variable name and type .sysout, .cast and so on, the snippet suggestion pop out. ...
0
votes
1
answer
68
views
emmet custom snippets with variables
I need generate my custom tag "django template tag"
I want to create correct tag for snippet
after
bdlock{foo}
get
{% block foo %}
{% endblock content %}
I have that
{
"html"...