PHP – How do I get the menu class in WordPress?

Thank you for your contribution to StackOverflow in Spanish!

  • Please be sure answer the question, Give information and share your research!

But shun

  • Ask for help or clarification, or respond to other answers.
  • Make statements based on opinions; Make sure you provide them with references or your personal experience.

For more information, see our tips for writing great answers.

My webshop is offline and gives error undefined class constant CACHEGROUP

I hope someone here is able to help me. I have no experience with technical issues in Magento. I am getting an error while starting my website. Somebody similar to this problem? Hope you can bring me online!


Fatal error: undefined class constant & # 39; CACHE_GROUP & # 39; in /home/deb126395/domains/ on line 1075

java – error: & # 39; .class & # 39; expected return int menor;

error: Error: & # 39; .class & # 39; expected
Return int menor;

Qué sucede?

public class Programa {
   public static void main(String() args) {
      int x = 23, y = 45;
      int menor=esMenor(x, y);
      if( menor == x) {
         System.out.println("x es menor");

   public static void esMenor(int a, int b) {
      if (a < b) {
         int menor = a;
      } else if (a >= b) {
         int menor = b;
      return int menor;

Ruby inheritance – child class has only parent attributes

It's my first time using Ruby subclass inheritance.
I have a parent class A with the attribute "name: string",
and a child class B <A with an attribute "bankname: string".

When I create a B instance ( with the Rails console, I get an object with only the attribute "name: string" and without the attribute "bankname: string".

Is there anything else I should specify in my B definition?

Thank you very much

Reference Request – Randomized version of class $ APX $?

Is there a class that belongs to APX, like BPP to P?

I'm looking for a definition that looks like this:

"To the $ r> 0 $, one $ r $RPCA (Randomized Polynomial-Time Constant-Factor Approximation) algorithm for a functional problem $ T: Sigma ^ * to mathbb {N} $ is a probabilistic Turing machine $ A $ with the following property: $ A $ runs in time $ poly (| x |) $ and has $ mathbb {P} (r ^ {- 1} T (x) leq A (x) leqr T (x)) geq 2/3 $, "

I think that either a class like this exists and has a default name, or that something is wrong with it. I am looking for a similar definition with which I can specify a result clean.

Is my UML use case and the class diagram correct?

So I am very new to creating design diagrams. I have a scenario where a user who is an administrator of Pizza Hut selects the registration option and the system prompts him to enter customer information. When entering the customer data, the system creates a user name and password for the customer, notifies the administrator that the customer has been created, and sends the customer an email to inform them of the full registration. On this basis, I have created the UML Use Case Diagram (left) and the UML Class Diagram (right). Is it right? If not, please give some feedback!
Enter image description here

java – access an object of one class from another class object

I'd like to apologize for my English, since I'm not a native speaker. The title may be a bit dated, as I was not sure how to express it, but I hope it comes through as soon as I show my code.

The problem I'm facing is that I want to use the Store class to do all the shopping while I store the money variable in the Player class.

Is there a way to access the gambler's money integer without creating a play class object in the shop class?

I've been thinking of using a static integer to store the data, but from what I've read online, using static data types is a bad practice.

public class beta {

public static void main(String() args) {
    Player p1 = new Player("Test");
    Shop s1 = new Shop();




public class player {

private int money;
private String name;

public Player(String name) { = name;
public int getMoney() {
    return money;
public void setMoney(int x) { +=x;


public shop {

private int money;

public employee (int x) { = x;
   if ( >= total) {
   question4 = false;
   System.out.println("Your purchase was successful!");
   if (blue > 0) {
       this.addInventory("Blue", blue);
   if (red > 0) {
       this.addInventory("Red", red);
   if (green > 0) {
       this.addInventory("Green", green);
    else {
question4 = false;
System.out.println("Sorry you cant afford that!");


So I shortened my code to show you only the essential parts.
I want to access the money variable p1: s of the player class within the shop class.

So far, I have passed the variable when calling main. Is this the only option I have, or can I access it in other ways?

Any help would be appreciated!

dnd 5e – How does the revised UA ranger "Greater Favored Enemy" interact with "Favored Foe" from the feature variants of the UA class?

When a Revised Ranger uses the Preferred Enemy variant of the last unearthed Arcane, he replaces the original Preferred Enemy feature. How does this interact with the existing "Great Favored Enemy" feature?

Even if the Ranger does not have access to the favored enemy, are the benefits he offers still the favored enemy?

Favorite enemy (original)

From the first level, you will have extensive experience of studying, following, hunting, and even speaking to a particular type of enemy that is normally encountered in the wild.
Choose a favorite enemy: beasts, fairies, humanoids, monstrosities or undead. You will receive a +2 bonus if you roll damage rolls against creatures of the selected type. In addition,
You have the benefit of checking the wisdom (survival) to track down your favorite enemies, as well as checking the intelligence services to retrieve information about those enemies.
When you use this feature, you also learn a language of your choice that is usually spoken by your favorite enemy or related creatures. However, you can choose any language you want to learn.

Preferred enemy (variant)

You can invoke your attachment to nature to mark a creature as your favorite enemy for a while: you know the hunter's magecraft, and wisdom is your magic for it. You can use it a certain number of times without consuming a spell slot and requiring no concentration at least equaling your Wisdom Modifier. You can recover all suspended uses if you have taken a long break.
If you receive Spell Action on 2nd level, the Hunter Marker will not be counted against the number of Ranger Spells you know.

Big favored enemy (original)

From the 6th level you are ready to hunt more deadly game. Choose a kind of more preferred enemies: aberrations, celestial bodies, constructs, dragons, elementals, fiends or giants. You get all the benefits against this chosen enemy that you normally receive against your favorite enemyincluding an additional language. Your damage bonus bonus against all your favorite enemies increases to +4.
You also have the advantage of saving throws against the spells and abilities of a favored opponent.

(Focus is on me)

Java – How can I shorten this code for my tower class? And how can I see if another character is in front of me?

I am writing my tower class for a chessboard of size 8×8. It works and it also displays all the green fields that can be accessed, even if there are figures on the boxes. I'm not sure how to write a method that checks if there is another character in front of my active character. I hope you understand my problem …: /

I know that my code is not really pretty. That was actually my second question: Is there a way to shorten it?

Thanks a lot for the incoming help, I'm still learning!

 `public Point() accessable() {
Point()accessable = new Point(16)

//Vertical movement
accessable(0)= new Point (World.getWidth()-1,getY()); 
accessable(1)= new Point (World.getWidth()-2,getY());
accessable(2)= new Point (World.getWidth()-3,getY());
accessable(3)= new Point (World.getWidth()-4,getY());
accessable(4)= new Point (World.getWidth()-5,getY());
accessable(5)= new Point (World.getWidth()-6,getY());
accessable(6)= new Point (World.getWidth()-7,getY());
accessable(7)= new Point (World.getWidth()-8,getY());
//Horizontal movement
accessable(8)= new Point (getX(),World.getHeight()-1);
accessable(9)= new Point (getX(),World.getHeight()-2);
accessable(10)= new Point (getX(),World.getHeight()-3);
accessable(11)= new Point (getX(),World.getHeight()-4);
accessable(12)= new Point (getX(),World.getHeight()-5);
accessable(13)= new Point (getX(),World.getHeight()-6);
accessable(14)= new Point (getX(),World.getHeight()-7);
accessable(15)= new Point (getX(),World.getHeight()-8);

if ((getX() != 1) && (getY() == 1) || (getX() == 1) && (getY() 
      != 1))

return accessable;